Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Setting the active path in EXEC via OLE automation
Message
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Titre:
Setting the active path in EXEC via OLE automation
Divers
Thread ID:
00336646
Message ID:
00336646
Vues:
50
Hi all,

Again with questions. :)

From inside VFP I run this code to start Excel:

1. oleExcel = CREATEOBJECT("Excel.application")
2. oleExcel.application.workbooks.open("C:\mypath\mybook.xls")
3. oleExcel.visible = .T.

I need between steps 1 and 2, to set the Excel active path (via a swicth is: /p "C:\mypath"

How can I do this with OLE?

Thanks.
Pablo Roca
Clavo Congelados, S.A. (La Coruna - Spain)
Sysop of PortalFox

Join MasFoxPro campaign
http://www.masfoxpro.com
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform