PC Review


Reply
Thread Tools Rate Thread

Automatically opening file saved to someone "Documents&Sett' direc

 
 
Max2073
Guest
Posts: n/a
 
      9th Dec 2009
Help Needed.
I had developed a macro that was used by myself, however now the macro needs
to be utilised by others.
The marco opens files, that have been exported from the corporate database.
The files are saved automatically to the users C Drive eg. C:\Documents and
Settings\"username – officer logged on"\help.xls
The only difference is the username in the file path.
Is there anyway that I can change the file path to automatically go to the
correct file, without having to create a different macro for each user.
Any help would be greatly appreciated.

 
Reply With Quote
 
 
 
 
Jacob Skaria
Guest
Posts: n/a
 
      9th Dec 2009
Try

Msgbox Environ("UserProfile") & "\help.xls"

--
Jacob


"Max2073" wrote:

> Help Needed.
> I had developed a macro that was used by myself, however now the macro needs
> to be utilised by others.
> The marco opens files, that have been exported from the corporate database.
> The files are saved automatically to the users C Drive eg. C:\Documents and
> Settings\"username – officer logged on"\help.xls
> The only difference is the username in the file path.
> Is there anyway that I can change the file path to automatically go to the
> correct file, without having to create a different macro for each user.
> Any help would be greatly appreciated.
>

 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
"File In Use" when opening two documents based on the same templat Henrik Wendt Microsoft Word Document Management 0 9th Dec 2009 01:31 PM
Stop "Book1" from opening from a saved file =?Utf-8?B?amN1dG9sbw==?= Microsoft Excel Misc 4 27th Jul 2007 08:08 PM
Saved documents are suddenly coming up "File in Use", locked. Why =?Utf-8?B?QktO?= Microsoft Word Document Management 1 20th Jul 2007 05:01 PM
Problem getting rid "Documents" file opening on desktop John Feagin Windows XP Help 1 30th Aug 2004 04:57 PM
How do I prevent the "Documents and Settings" folder from opening up automatically in "Explore"? Vance McAlister Windows XP General 6 24th Feb 2004 04:00 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 11:21 PM.