S
Stan Guss
In my custom form I have the following code:
Set olApplication = CreateObject("Outlook.Application")
Set olNameSpace = olApplication.GetNamespace("MAPI")
Dim strCurrentUser
CurrentUser = olNameSpace.CurrentUser
Item.UserProperties.Find("txtProdMgr").Value = CurrentUser
Although this does not happen in Outlook 2000, in 2002 a
dialog box pops up saying that "A program istrying to
access e-mail addresses you have stored in Outlook. Do you
want to allow this? If this is unexpected, it may be a
virus and you should choose "No".
Is there a way to programmatically disable this? I just
want the current users log-in.
Thank you in advance.
Set olApplication = CreateObject("Outlook.Application")
Set olNameSpace = olApplication.GetNamespace("MAPI")
Dim strCurrentUser
CurrentUser = olNameSpace.CurrentUser
Item.UserProperties.Find("txtProdMgr").Value = CurrentUser
Although this does not happen in Outlook 2000, in 2002 a
dialog box pops up saying that "A program istrying to
access e-mail addresses you have stored in Outlook. Do you
want to allow this? If this is unexpected, it may be a
virus and you should choose "No".
Is there a way to programmatically disable this? I just
want the current users log-in.
Thank you in advance.