Outlook Banter

Outlook Banter (http://www.outlookbanter.com/)
-   Outlook and VBA (http://www.outlookbanter.com/outlook-vba/)
-   -   Currently logged in user's email (http://www.outlookbanter.com/outlook-vba/10206-currently-logged-users-email.html)

John April 1st 06 05:03 AM

Currently logged in user's email
 
Hi

We can get the current logged in user's name but is it also possible to get
the default email form outlook of the currently logged-in user as well? The
reason for this is that I need to email the users warnings from time to
time. As the system may be running by different users on different pcs, I
need to pick up the email of the currently logged-in user to send him/her
the email.

Thanks

Regards



Dmitry Streblechenko April 1st 06 05:29 AM

Currently logged in user's email
 
Application.Session.CurrentUser.Address

Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool

"John" wrote in message
...
Hi

We can get the current logged in user's name but is it also possible to
get the default email form outlook of the currently logged-in user as
well? The reason for this is that I need to email the users warnings from
time to time. As the system may be running by different users on different
pcs, I need to pick up the email of the currently logged-in user to send
him/her the email.

Thanks

Regards





All times are GMT +1. The time now is 06:44 AM.

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