Outlook Banter

Outlook Banter (http://www.outlookbanter.com/)
-   Outlook and VBA (http://www.outlookbanter.com/outlook-vba/)
-   -   Getting the user profile folder (http://www.outlookbanter.com/outlook-vba/7244-getting-user-profile-folder.html)

John January 15th 06 01:32 AM

Getting the user profile folder
 
Hi

I need to get the signature folder for the current folder such as;
"F:\Documents and Settings\Dave\Application Data\Microsoft\Signatures\"
except that instead of Dave I need the correct name for the current user, s
that my code works generically regardless of who is logged in. Is there a
way to do that?

Thanks

Regards



neo [mvp outlook] January 15th 06 03:58 AM

Getting the user profile folder
 
You could try reading the environment variable "APPDATA". From there you
would just have to append "\Microsoft\Signatures" to end up in the correct
place.

"John" wrote in message
...
Hi

I need to get the signature folder for the current folder such as;
"F:\Documents and Settings\Dave\Application Data\Microsoft\Signatures\"
except that instead of Dave I need the correct name for the current user,
s that my code works generically regardless of who is logged in. Is there
a way to do that?

Thanks

Regards






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

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2006 OutlookBanter.com