Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Opening Excel from a Form
Message
De
27/01/2003 12:34:01
 
 
À
27/01/2003 11:59:33
Billy Bramhall
Interdirect Usa, Inc.
Houston, Texas, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00745826
Message ID:
00745856
Vues:
25
Dear Billy

Please try the following code in the click event of the commandbutton:

lcOldError=on("ERROR")
on Error oExcel=.NULL.
oExcel=GetObject(,"Excel.Application")
onError &lcOldError
IF isnull(oExcel)
oexcel=CreateObject("Excel.Application")
Endif
oEXCEL.workbooks.open('Excelfile.XLS')

&&Where excelfile is the file you want to open

Regards,

Steve.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform