Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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 |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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 |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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 |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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 |
#5
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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 |
#6
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
To the OP,
This all means that you need to test the version and use a different path. It can be done with conditional compilation like so #If VBA6 Then myPath = Application.UserLibraryPath #Else myPath = Application.LibraryPath #End If -- HTH RP (remove nothere from the email address if mailing direct) "Tom Ogilvy" wrote in message ... 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 |
#7
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Bob and Tom . Pretty good service for a Sunday afternoon! I am most
grateful. Looks like we had it right first time. Tom, I am under the impression you are in the US - but are you actually in Britain ? We are in Scotland... Best regards - Charles *** Sent via Developersdex http://www.developersdex.com *** Don't just participate in USENET...get rewarded for it! |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Loosing correct hyperlnk location after sorting spreadsheet data | Excel Discussion (Misc queries) | |||
Help to correct code | Excel Programming | |||
Reproducable Hard Crash in Excel 2003 (and earlier versions) with the following VBA code. | Excel Programming | |||
VB code needed for running newer excel version macros in older excel versions | Excel Programming | |||
Code for runnning macros created in XP in older excel versions | Excel Programming |