E
E.Zenker
Hi,
How to read out the current user for a code used in my userdefined form.
I tried this:
Set myOlApp = CreateObject("Outlook.Application")
Set myNameSpace = myOlApp.GetNameSpace("MAPI")
MsgBox myNameSpace.CurrentUser.Name
and this:
Set myNameSpace = Application.GetNameSpace("MAPI")
MsgBox myNameSpace.CurrentUser.NameThe response is in both cases "unkown".
What can be the reason.Or are there other ways to get the current user.User
=
Thanks
E. Zenker
How to read out the current user for a code used in my userdefined form.
I tried this:
Set myOlApp = CreateObject("Outlook.Application")
Set myNameSpace = myOlApp.GetNameSpace("MAPI")
MsgBox myNameSpace.CurrentUser.Name
and this:
Set myNameSpace = Application.GetNameSpace("MAPI")
MsgBox myNameSpace.CurrentUser.NameThe response is in both cases "unkown".
What can be the reason.Or are there other ways to get the current user.User
=
Thanks
E. Zenker