Results 1 to 3 of 3
  1. #1
    3 Star Lounger
    Join Date
    Jan 2001
    Location
    Newbury, Berkshire, UK, Berkshire, England
    Posts
    243
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Address book permissions (Outlook XP / SP-1)

    I'm trying to create a rule so that whenever I get a weekly email from Scoot with my local cinema film times, it will export the message as text to a specific directory, which is the folder that my PocketPC sync's with, so I'll have an up-to-date listing whenever I sync the two devices.
    First I wanted to see how to export, so I've written a bit of VBA that takes the first item from my ActiveExplorer Selection collection, and does a SaveAs to olTXT format, but I get a warning dialog "A program is trying to access data from Outlook that may contain address book information ... Allow Access Yes / No / Help".
    Any suggestions how I can programtically click the "yes" option <img src=/S/question.gif border=0 alt=question width=15 height=15>

    Of course the next thing is to get the code to run as a rule, but when I looked in the Rules Wizard, the Run a Script option doesn't display my SaveNoteAs function, nor does the Perform a Custom Action, so again any suggestions on how to run a function from a rule <img src=/S/question.gif border=0 alt=question width=15 height=15>

  2. #2
    5 Star Lounger
    Join Date
    May 2001
    Location
    Washington, USA
    Posts
    750
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Address book permissions (Outlook XP / SP-1)

    I could well be wrong about some of this because I'm not totally up to speed on OLXP. There seem to be two issues here. 1) I'm pretty sure you can't access functions or code directly from the rules. You have to use the custom action option. But this uses special add-ins, not the VB project file. 2) To get around the security prompt you have to be on Exchange and have the add-in set up using the admin form. Maybe someone else has better news...

  3. #3
    Super Moderator jscher2000's Avatar
    Join Date
    Feb 2001
    Location
    Silicon Valley, USA
    Posts
    23,112
    Thanks
    5
    Thanked 93 Times in 89 Posts

    Re: Address book permissions (Outlook XP / SP-1)

    As an alternative to using Rules, you can create an event handler that is triggered by the Application_NewMail event. However, since I've never tried this, others will have to chime in on the specifics.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •