Pull full name from Outlook

wtrimble

Registered User.
Local time
Today, 18:19
Joined
Nov 13, 2009
Messages
177
I have posted this at the end of my last thread but I wanted to ask it formally to better a response.

I want to retrieve the full name of the user when they enter my database to greet them and to use else where. Assuming Microsoft Outlook is open, is there anyway to retrieve their name??

I have this as a starter:

Code:
Dim olapp As Outlook.Application
Dim mailoutlook As Outlook.MailItem
 
 
    Set olapp = CreateObject("outlook.application")
    Set mailoutlook = olapp.CreateItem(olMailItem)

Now is there any property or method that would retrieve the "Name" field in outlook for their email address or windows username that I'm assuming Outlook uses to open the correct Email account when the user logs in.
I'm able to pull the user name with:

environ%("username").

Any thoughts? Thanks for any help
 

Users who are viewing this thread

Back
Top Bottom