Code for Correct location of Add-ins for all versions of Excel
I suspect it is what he has:
? Application.LibraryPath
C:\PROGRAM FILES\MICROSOFT OFFICE\OFFICE\LIBRARY
--
Regards,
Tom Ogilvy
"Bob Phillips" wrote in message
...
Thanks, that makes sense as it was then (?) that the user profile area
started to be used rather than the Office Excel area. Do we know the 97
path?
Bob
"Tom Ogilvy" wrote in message
...
Just for information, not available in Excel 97. Must have been
introduced
in xl2000
--
Regards,
Tom Ogilvy
"Bob Phillips" wrote in message
...
Charles,
I have to ask why not just save the file back to where it came from,
but
if
you continue this approach, look at
Application.UserLibraryPath
--
HTH
RP
(remove nothere from the email address if mailing direct)
"Charles Jordan" wrote in message
om...
Hi - we are writing an application for users who may have any
version
of Excel : 97,2000,2002, 2003 etc, and we are developing on several
machines, all running XP, but with XL 2002 on one machine, Xl2003 on
another.
Our install programme has the following code:
DestPname$ = Application.LibraryPath & "\" etc etc
and the result is to install the .xla file as follows:-
In Excel 2000: C:\Program Files\Microsoft Office\Office\Library
In Excel 2003: C:\Program Files\Microsoft Office\Office11\Library
But when developing the .xls/xla further on one of these machines
and
saving it directly, as opposed to using the above Install routine,
the .xla then comes to rest in:
C:\Documents and Settings\Administrator\Application
Data\Microsoft\Addins
Please what is the correct code, if possible for all versions of
Excel, and the correct location ie final destination of the .xla ,
please
TIA
Charles
|