A
Anthony Ryan
Hi there,
Our IT department have a spreadsheet which is setup in the startup
directory of Excel 97.
When the user doubleclicks a file in windows explorer and Excel is NOT
open, excel starts and the file is opened - works fine.
I have just added in some code to the Autpen and Auto_Close
subroutinues of the startup spreadsheets to look for a addin in the
addin list and if it exists then install it. The code works.
The problem is when excel is not opened and the user doubleclicks a
file in windows explorer, excel starts up, starts the startup
spreadsheets it then installs the addin if it exists BUT does not open
the file that was doubleclicked in windows explorer.
If I go back to and doubleclick the file is opens because excel is
already opened.
I have also used the Sheet_BeforeOpen event, etc as well and also have
the same problem.
If I replace the code in the auto_open, etc subroutines with something
else e.g.
make a custom toolbar it all works fine.
The problem seems to be isolated with the code in looking for and
installing the addin.
Thanks for any help
Our IT department have a spreadsheet which is setup in the startup
directory of Excel 97.
When the user doubleclicks a file in windows explorer and Excel is NOT
open, excel starts and the file is opened - works fine.
I have just added in some code to the Autpen and Auto_Close
subroutinues of the startup spreadsheets to look for a addin in the
addin list and if it exists then install it. The code works.
The problem is when excel is not opened and the user doubleclicks a
file in windows explorer, excel starts up, starts the startup
spreadsheets it then installs the addin if it exists BUT does not open
the file that was doubleclicked in windows explorer.
If I go back to and doubleclick the file is opens because excel is
already opened.
I have also used the Sheet_BeforeOpen event, etc as well and also have
the same problem.
If I replace the code in the auto_open, etc subroutines with something
else e.g.
make a custom toolbar it all works fine.
The problem seems to be isolated with the code in looking for and
installing the addin.
Thanks for any help