General information
Category:
COM/DCOM and OLE Automation
Title:
OLE Automation - Excel
Environment versions
Network:
Windows 2003 Server
Dear all,
I would like to know the equivalent code to VFP if using OLE the command in Excel for "Find" The following will give an error:
XLApp = createObject('excel.application')
XLApp.Visible = .t.
*XLApp.WorkBooks.open('c:\xxx\xxxx.xls')
XLSheet = XLApp.ActiveSheet
xlsheet.range("h:h").select
xlsheet.selection.find.text="ABCD"
Please advise.
Thanks.
Ed
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only