How do I access the blocked property currentUser in MS Outlook wi.

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I am writing a macro in MS Outlook using Visual Basic 6.0 that required the
information stored in currentUser. Here is the code:

Dim objNS As NameSpace
..
..
Set objNS = objApp.GetNamespace("MAPI")
..
..
objWord.Selection.TypeText CStr(objNS.currentUser)

I run the macro in MS Outlook and I get a security warning but it works. So
here is my question"

How do I access the blocked property currentUser in MS Outlook without
prompting the security warning?

A program is trying to access e-mail addresses you have stored in Outlook.
Do you want to allow this? ....
 
Back
Top