Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Different versions of excel
Message
 
To
07/03/2001 02:36:24
General information
Forum:
Visual Basic
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00481240
Message ID:
00482631
Views:
12
>I did as you suggested. I changed my code from this:
>
> Dim xlApp As Excel.Application
> Dim xlBook As Excel.Workbook
> Dim xlSheet As Excel.Worksheet
> Set xlApp = CreateObject("Excel.Application")
> Set xlBook = xlApp.Workbooks.Add
> Set xlSheet = xlBook.Worksheets(1)
>
>To this:
>
> Dim xlApp As Object
> Dim xlBook As Excel.Workbook
> Dim xlSheet As Excel.Worksheet
> Set xlApp = CreateObject("Excel.Application")
> Set xlBook = xlApp.Workbooks.Add
> Set xlSheet = xlBook.Worksheets(1)
>
>I compiled my app to an exe file and ran it on a pc that has office97 installed on it. I get the following error:
>
>Runtime error '429':
>ActiveX component can't create object
>
>Any other ideas?
>
>>
>>-Remove the reference to Excel.
>>-Declare as object (Dim xlApp as Object).
>>-Instantiate your object (Set xlApp = CreateObject("Excel.Application"))


Have you removed the reference to Excel (from Project->References)?
Éric Moreau, MCPD, Visual Developer - Visual Basic MVP
Conseiller Principal / Senior Consultant
Moer inc.
http://www.emoreau.com
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform