General information
Category:
Forms & Form designer
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.
Previous
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only