Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Office Excel.2007 won't automate
Message
From
28/10/2020 20:17:21
 
 
To
28/10/2020 16:14:31
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Miscellaneous
Thread ID:
01676837
Message ID:
01676838
Views:
57
You could try unregistering, then re-registering Excel as a COM server:
* In a CMD window (may need to be elevated i.e. run as administrator):
regsvr32 /u [path_to_file]\excel.exe
regsvr32 [path_to_file]\excel.exe
>Office Excel.2007 won't automate unless it has run once.
>
>m.loExcel = CreateObject("Excel.Application")
>Error Ole error code 0x80080005: Server execution failed.
>With (m.loExcel)
>
> * do neat excel stuff here
>
>Endwith && excel
>
>if i launch excel, then close it all is well.
>
>can anyone shed light on this.
Regards. Al

"Violence is the last refuge of the incompetent." -- Isaac Asimov
"Never let your sense of morals prevent you from doing what is right." -- Isaac Asimov

Neither a despot, nor a doormat, be

Every app wants to be a database app when it grows up
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform