Edit

Share via


Reference the Active User

Use Application.GetNamespace to return the Outlook NameSpace object from the Application object, and then use the NameSpace.CurrentUser property to return a Recipient object representing the active user, as shown in the following example.

Set myUser = Application.GetNameSpace("MAPI").CurrentUser

Support and feedback

Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.