Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Office Automation - Excel Activesheet
Message
From
07/04/2010 11:08:42
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP
Network:
Windows NT
Database:
MS SQL Server
Application:
Desktop
Miscellaneous
Thread ID:
01459157
Message ID:
01459163
Views:
34
Thanks Sergey ... worked like a charm but I do have one more question. If you didn't know the name of the worksheet (tab) what is the reference to the "name" that is stored in the tab so I can pull the extract name.

>lcSheetName = "Whatever"
>oExcel.Sheets(lcSheetName).Activate()
* or
>lnSheetNumber = 2
>oExcel.Sheets(lnSheetNumber).Activate()

>I haven't done much with "automation" by am a somewhat familar with the basics but I can't seem to figure this out.
>
>How do you change the "activesheet?" For example, if I add three worksheets how to I switch back and forth between the thee worksheets, thus making #1 the activesheet and then #2 the activesheet and then #3 the activesheet, etc.
>
>Robert Wright
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform