#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default XLStart question

Hi,

Our company just upgraded from Office 97 to Office 2003. We have a VB
application that sometimes needs to launch Excel and run some macros.
When it needs to do this it copies the .xls file containing the macros
to
...\program files\office11\xlstart and then launches Excel. When the
app is done running, it removes this file from XLStart. So far we
have upgrades about 600 people and this approach seems to be working
for almost everyone. However we have had 3 cases where the file gets
copied to the XLStart folder and Excel gets started, but the file in
XLStart doesn't open.

It sounds like by default, Office 2003 wants to look in ...\documents
and settings\current user\..... for the xlstart folder. When we try
physically copying the file to this location on the computers that
aren't working, it works fine. My question is, why does Excel know to
look in program files\office11\xlstart in most cases, but doesn't know
to look there for these 3 cases?

Because each user is going to have a different value for the current
user part of the path in documents and settings, we don't know how to
get our VB code to copy the file over to the XLStart in that location
so we would like to figure out how to fix things in cases where it
doesn't know to look in the Office11 folder.

I hope I explained myself clearly here. If you have any ideas, I
would sure appreciate hearing from you.

Thanks

  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35,218
Default XLStart question

I'd go to those three people's pc and find out if their XLStart paths are
different.

Open excel on those pc (logged on as the problem user <bg)
hit alt-f11 to get to the vbe
hit ctrl-g to see the immediate window
type this and hit enter:
?application.startuppath

And compare what you get to where you're placing the workbook.

====
On the other hand, I think I'd just keep that workbook in a nice common location
(on a network share). And then I'd have the VB program open that workbook when
required:

dim mySpecialWkbk as workbook
set myspecialwkbk = workbooks.open("\\somename\somename\somefolder\myf ile.xls")
....

(It'll have to be translated into VB, though.)

wrote:

Hi,

Our company just upgraded from Office 97 to Office 2003. We have a VB
application that sometimes needs to launch Excel and run some macros.
When it needs to do this it copies the .xls file containing the macros
to
..\program files\office11\xlstart and then launches Excel. When the
app is done running, it removes this file from XLStart. So far we
have upgrades about 600 people and this approach seems to be working
for almost everyone. However we have had 3 cases where the file gets
copied to the XLStart folder and Excel gets started, but the file in
XLStart doesn't open.

It sounds like by default, Office 2003 wants to look in ...\documents
and settings\current user\..... for the xlstart folder. When we try
physically copying the file to this location on the computers that
aren't working, it works fine. My question is, why does Excel know to
look in program files\office11\xlstart in most cases, but doesn't know
to look there for these 3 cases?

Because each user is going to have a different value for the current
user part of the path in documents and settings, we don't know how to
get our VB code to copy the file over to the XLStart in that location
so we would like to figure out how to fix things in cases where it
doesn't know to look in the Office11 folder.

I hope I explained myself clearly here. If you have any ideas, I
would sure appreciate hearing from you.

Thanks


--

Dave Peterson
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
XLStart... sri Excel Discussion (Misc queries) 4 September 14th 06 02:29 PM
xlstart Jack Excel Discussion (Misc queries) 10 September 14th 06 01:32 AM
XLStart doesn't always Bill Martin -- (Remove NOSPAM from address) Excel Discussion (Misc queries) 2 July 23rd 05 02:51 AM
XLStart directory woburn Excel Discussion (Misc queries) 1 February 23rd 05 09:05 PM
XLStart Wazooli Excel Discussion (Misc queries) 3 December 9th 04 12:53 AM


All times are GMT +1. The time now is 12:49 PM.

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"