Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Help for automation with MS Excel

Status
Not open for further replies.

Nifrabar

Programmer
Mar 16, 2003
1,343
NL
Hi,

From VFP I can get value from 2nd sheet in ExcelBook by:
oExcel.Sheets(2).select
I think it is possible to achieve this same by using the sheetname.
But I'm struggling with the syntax on that.
Any help?

TIA
-Bart
 
Mike's suggestion is correct.

But have you investigated how to do this yourself by doing the work manually in Excel as part of creating an Excel Worksheet Macro? If you had, you could have gone into that Macro and examined the VBA code and then converted it into VFP Automation code.

Good Luck,
JRB-Bldr
 
Mike,
As quit often.... Too easy. But yes it works.

JRB,
I know you can see how things are going using the macro editor.
Just did not make the connection between sheet(2) and 'sheet2'.

Anyway thanks for replying on my Q.

-Bart
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top