Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,452
Default Unable to read file

I have an INNO setup file that installs (loads) a .xla add-in via COM. This
is the INNO code:

oXL := CreateOleObject('Excel.Application');
oXL.Workbooks.Add;
oAddin :=
oXL.Addins.Add(ExpandConstant('{app}\Program\Syner gyReportingLoader.xla'),
true );
oAddin.Installed := true;
oXL.Quit;

For some reason I now get the message from INNO (but generated by Excel):
Unable to read file.
When I do OK and carry on installing all is fine and there are no problems.
I don't get the same message
when I start Excel with that .xla loaded, so there is no serious problem,
but I am still interested to know
how this message could happen. I have done a lot of Googling and tried all
the suggested remedies for this,
but no difference. This is Excel 2003. I don't get the message on another
machine.

BTW, adding this tot the INNO script stops the message:
oXL.DisplayAlerts := false;

I think the chance is slim somebody knows the answer to this, but you never
know and thanks in advance.
Have posted this to the INNO group, but no insight from there.


RBS

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
unable to read file Anna Excel Discussion (Misc queries) 5 January 29th 07 05:33 PM
"Unable to read file" error message when opening a Excel file that contains a PivotTable report. Tim Marsden Charts and Charting in Excel 2 October 15th 05 02:10 PM
Unable to read File r burns Excel Worksheet Functions 1 September 2nd 05 07:36 PM
unable to read file R.VENKATARAMAN Excel Discussion (Misc queries) 3 May 20th 05 10:42 AM
unable to read file MikeJohnB Excel Programming 0 May 3rd 05 08:25 PM


All times are GMT +1. The time now is 04:52 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"