Information générale
Catégorie:
Codage, syntaxe et commandes
Titre:
Starting Excel with Personal.xls
Starting Excel through Automation doen't load the XLSTART\PERSONAL.XLS macro file automatically. Running Excel from the Desktop loads Personal.xls from the XLSTART directory by default. How can I load and run PERSONAL.XLS from VFP?
My code to start:
cExcelFileName = 'c:\excel\shop\1-0960-01.xls'
oExcel = CREATEOBJECT('Excel.Application')
* I would like PERSONAL.XLS to load here.
* Then execute PERSONAL.XLS here.
oExcel.Workbooks.OPEN( cExcelFileName )
oExcel.VISIBLE = .T.
Thanks.
Bill
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement