I you open a dos widnow and type SEt you will see all the user
environmental paraters. On WinXP go to
Start - Run
In run box type : cmd.exe
A dos window opens and then type : Set
In Vista go to Start and do a search for cmd.exe. follow instructions
above
The VBA code wil be something like this
UserProfile = environ("Userprofile")
Helpfile = Userprofile & "\help.xls"
--
joel
------------------------------------------------------------------------
joel's Profile:
http://www.thecodecage.com/forumz/member.php?userid=229
View this thread:
http://www.thecodecage.com/forumz/sh...d.php?t=160024
Microsoft Office Help