W
wawa
Hi
How to read out the current user of Outloo
to use it in a code for my userdefined form
I tried this
Set myOlApp = CreateObject("Outlook.Application"
Set myNameSpace = myOlApp.GetNameSpace("MAPI"
MsgBox myNameSpace.CurrentUser.Nam
and this
Set myNameSpace = Application.GetNameSpace("MAPI"
MsgBox myNameSpace.CurrentUser.Nam
The response is in both cases "unkown".
What can be the reason
Or are there other ways to get the current user
User = ???
Thank
How to read out the current user of Outloo
to use it in a code for my userdefined form
I tried this
Set myOlApp = CreateObject("Outlook.Application"
Set myNameSpace = myOlApp.GetNameSpace("MAPI"
MsgBox myNameSpace.CurrentUser.Nam
and this
Set myNameSpace = Application.GetNameSpace("MAPI"
MsgBox myNameSpace.CurrentUser.Nam
The response is in both cases "unkown".
What can be the reason
Or are there other ways to get the current user
User = ???
Thank