Security issues: accessing MS Outlook information

Posted on 2004-11-30
Last Modified: 2010-04-17
I'm maintaining a VBA subroutine in a MS Word document that queries MS Outlook for user information.
When this query occurs, the user gets a message stating that "A program is trying to access e-mail addresses you have stored in Outlook." It also suggests that this could be because of a virus. Is there a way to pre-emptively circumvent this using a digital certificate or something similar?
I'm using Office 2003 under Windows XP.
Question by:TheTaxMan
    LVL 1

    Expert Comment


    This link will help

    That sentence is very important "Outlook must be running in classic online mode in order to save security settings, not cached mode nor offline mode."
    LVL 3

    Expert Comment

    This is a security measure built into Outlook to notify user of programmatic background use...

    This article explains what happen and maybe it will help you...

    Author Comment


    I think your answer is most relevant to my problem. Do you know if a digital certificate (or anything) can be used to make the message go away before it appears? Basically I want the MS Word template to tell Outlook to "trust" the programmatic access attempt.

    LVL 3

    Expert Comment

    How is email stored?  PST on client, or mailboxes...  And I guess while we're in twenty question mode,  what are you actually trying to do?  Query User information?
    Machine user information?  Logon?  There are other ways to find out who is logged onto the machine, if that is what we are trying let me know...  Microsoft doesn't let that information be very public...  we would then have many more viruses than we already do.....


    Author Comment

    We use mailboxes on a mail server. We have a global address book on this server. I am trying to get the user's full name and fax number. The only reliable source of this info is the Outlook address book.
    LVL 1

    Accepted Solution

    You cannot use digital certificates for VBA code to skip the security warning in Outlook like you are able to do that in Word, Excel, etc. The only thing you can do -- disable this security warning using "Outlook Security Template". Check my first message for the solution of your problem. Or go straight to

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Javascript: Crash Course

    Javascript is not only emerging as the most important language to know, it's flexibility is unique. With Javascript being deployed on the web, mobile and even the desktop this is the one language that all technologists need to know.

    Suggested Solutions

    Title # Comments Views Activity
    sum67 challenge 35 76
    modThree challenge 4 50
    sumDigits  challenge 7 39
    delphi parse string to params 3 44
    I know it’s not a new topic to discuss and it has lots of online contents already available over the net. But Then I thought it would be useful to this site’s visitors and can have online repository on vim most commonly used commands. This post h…
    Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
    An introduction to basic programming syntax in Java by creating a simple program. Viewers can follow the tutorial as they create their first class in Java. Definitions and explanations about each element are given to help prepare viewers for future …
    In this fifth video of the Xpdf series, we discuss and demonstrate the PDFdetach utility, which is able to list and, more importantly, extract attachments that are embedded in PDF files. It does this via a command line interface, making it suitable …

    761 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    7 Experts available now in Live!

    Get 1:1 Help Now