Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 40
Default Automatically opening file saved to someone "Documents&Sett' direc

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.

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Automatically opening file saved to someone "Documents&Sett' direc



This is the 3rd time this posting has appeared. See URL

http://tinyurl.com/yejpz7e


--
joel
------------------------------------------------------------------------
joel's Profile: 229
View this thread: http://www.thecodecage.com/forumz/sh...d.php?t=160934

Microsoft Office Help

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 8,520
Default Automatically opening file saved to someone "Documents&Sett' direc

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
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
"File Error: Data May Be Lost" when file saved on Mac is opened inWindows Π˜Π³ΠΎΡ€ΡŒ Excel Discussion (Misc queries) 0 December 28th 09 03:32 PM
i "saved" instead of "saved as". I need old file back KD Excel Discussion (Misc queries) 5 October 13th 09 08:32 AM
How do I Run Macro on Opening if user is not the "Last Saved By" U MikeZz Excel Programming 8 September 19th 07 09:26 PM
Stop "Book1" from opening from a saved file jcutolo Excel Discussion (Misc queries) 4 July 27th 07 08:08 PM
Opening web documents as "text" [email protected] Excel Programming 2 January 14th 05 01:09 PM


All times are GMT +1. The time now is 10:33 AM.

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"