Runtime error trying to open Excel spreadsheet - Advanced Installer Community

We’re moving our forums to a new platform.

You can still browse and search existing topics, but you can no longer create new topics or post replies.

For questions, technical issues, or feature requests, please don’t hesitate to contact our support team at support@advancedinstaller.com.

Thank you for your understanding!

rafulton1944
Posts: 1
Joined: Sat Jan 26, 2008 6:35 am

Runtime error trying to open Excel spreadsheet

Runtime error is '-2147023170 (800706be)'. My application was installed using the free version of Advanced Installer 6.1, using simple install option.

Another application installed with an earlier version of AI free (simple install option) will open the same Excel spreadsheet that fails in my new application.

I am running Windows Vista Home Premium, with Office Pro 2007 installed. Both applications spoken of above are written in VB6. Here is the code that is failing:

On Error GoTo ErrorReporting
Dim ssC As Long, ssR As Long
Dim oApp, mrApp As Excel.Application
Dim wb, mrwb As Excel.Workbook
Dim ws, mrws As Excel.Worksheet
rtn = "Spreadsheet: set oApp = New Excel.Application"
Set oApp = New Excel.Application
Set wb = oApp.Workbooks.Open(rawdataSS)

The failure happens on the final line above. The application works when running it under the visual basic compiler (using F5) to compile and execute.

Any ideas?

Thanks,
Rich
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Hi,

Please note that we offer support only for creating installation packages with Advanced Installer, we do not offer support for debugging custom code.

Since the free version of Advanced Installer allows only basic operations in the installation, the problem is with your application, not with Advanced Installer.

Please make sure that you correctly configured your Advanced Installer project in order to allow you application to find all it's files and run as expected. We have a tutorial for creating a Simple installation, please take a look:
http://www.advancedinstaller.com/user-g ... imple.html

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”