Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Excel - find
Message
From
05/10/2004 18:32:21
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
 
To
05/10/2004 18:29:26
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Title:
Miscellaneous
Thread ID:
00948975
Message ID:
00948976
Views:
13
Actually, I am not sure either. But I am answering because I want to point out (just in case you don't know it) what should be the basic approach, to find this out.

First, open Excel and save a macro. Then take a look at the generated macro, and see if you can adapt it to VFP.

My article on Excel Automation - http://www.utmag.com/wconnect/wc.dll?9,7,10,1562 - gives some more details.

>Can anyone provide me with the code to do a find in excel from foxpro?
>
>lcfile = getfile()
>oexcel = createobject("excel.application")
>oworkbook = oexcel.workbooks.open(lcfile)
>
>Now if i want to search for text within the excel file, i am not sure what the code is to do that.
>
>Any help would be appreciated. Thanks.
>
>Paul
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform