Results 1 to 3 of 3
  1. #1
    Plutonium Lounger Leif's Avatar
    Join Date
    Dec 2000
    Location
    U.K.
    Posts
    14,010
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Docs & Settings 'username' (2000/2002)

    Is there a way to determine the full path to a user's local profile?
    To programmatically send a fax, we need to write to its ini file but the latest version of our fax software has moved it to a specific folder in the users profile.
    The path I need to know is:
    Cocuments and Settings<USER-NAME>Application Data....

    Thanks.

  2. #2
    WS Lounge VIP rory's Avatar
    Join Date
    Dec 2000
    Location
    Burwash, East Sussex, United Kingdom
    Posts
    6,280
    Thanks
    3
    Thanked 191 Times in 177 Posts

    Re: Docs & Settings 'username' (2000/2002)

    Hi Leif,
    On WinXP Pro, you can just use Environ("USERPROFILE") in VBA to get you the Cocuments and SettingsUsername bit. I can't recall if that works on NT/2000 etc. if you need compatibility for those.
    Hope that helps.
    Regards,
    Rory

    Microsoft MVP - Excel

  3. #3
    Plutonium Lounger Leif's Avatar
    Join Date
    Dec 2000
    Location
    U.K.
    Posts
    14,010
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Docs & Settings 'username' (2000/2002)

    Excellent, thanks!
    Works in XP and 2K which is all I need.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •