Home |
Search |
Today's Posts |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I developed this code to return the User Name. You might want to
revise it so it picks up its input from a range rather than an INPUTBOX statement. Regards Greg Sub ReturnUserNamefromID() 'This routine returns the Outlook Common Name from the known User ID Dim UserID As String Dim OutObj As New Outlook.Application Dim Mail As Object Set Mail = OutObj.CreateItem(0) UserID = InputBox("Enter the UserID", "Email Lookup") Mail.To = UserID If Mail.Recipients.ResolveAll Then MsgBox Mail.To Else Debug.Print Mail.To & " did not resolve" End If Set Mail = Nothing End Sub |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Converting data download for date 2.00707E+11 into something more user-friendly | Excel Discussion (Misc queries) | |||
Automatically add a textbox to a user form based on user requireme | Excel Programming | |||
How to: User Form to assign a user defined range to a macro variab | Excel Programming | |||
User Defined Functions - Help Text - Make it Easy for the User | Excel Programming | |||
How to: Make user click End User License Agreement acceptance | Excel Programming |