Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Office Automation - Excel Activesheet
Message
De
07/04/2010 11:08:42
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP
Network:
Windows NT
Database:
MS SQL Server
Application:
Desktop
Divers
Thread ID:
01459157
Message ID:
01459163
Vues:
35
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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform