Opening Files - Macro

  • Thread starter Thread starter Max2073
  • Start date Start date
M

Max2073

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.
 
You have posted this multiple times. Try

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