Results 1 to 2 of 2

Thread: Problem when opening Outlook XP automatically...

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Dec 2004
    Location
    South Africa
    Posts
    26

    Problem when opening Outlook XP automatically...

    Hi

    Im busy with an application that automtically opens outlook and runs through all the messages in the inbox to save .pdf files to a specified folder.

    My problem is that when I call my procedure to run outlook an message appears on the screen stating

    "A program is trying to access e-mail addresses you have stored in outlook. Do you want to allow this? If this is unexpected then it may be a virus and you should choose no"

    YOu then have the Yes with a time limit and No buttons. How can I stop this box from popping up every XX minutes? Is there a settings I can change or can it be done programatically?

  2. #2
    Ex-Super Mod RobDog888's Avatar
    Join Date
    Apr 2001
    Location
    LA, Calif. Raiders #1 AKA:Gangsta Yoda™
    Posts
    60,709

    Re: Problem when opening Outlook XP automatically...

    No, you can not get around this programmatically. The security feature of Outlook is getting tighter and tighter
    with each version. The .Body property is now on the list of protected properties and the .SaveAs is on
    the list under protected methods.

    You may want to look at re-writing it as a Trusted Outlook Add-In. This is the only way to get around it using the OOM.
    This is the proper way to get around it. There are third party products that may seem to help, but they are reliant
    upon Outlook not changing. So if the next version of Outlook adds more security then you need to re-write
    your code again anyways
    VB/Office Guru™ (AKA: Gangsta Yoda®)
    I dont answer coding questions via PM. Please post a thread in the appropriate forum.

    Microsoft MVP 2006-2011
    Office Development FAQ (C#, VB.NET, VB 6, VBA)
    Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
    If a post has helped you then Please Rate it!
    Reps & Rating PostsVS.NET on Vista Multiple .NET Framework Versions Office Primary Interop AssembliesVB/Office Guru™ Word SpellChecker™.NETVB/Office Guru™ Word SpellChecker™ VB6VB.NET Attributes Ex.Outlook Global Address ListAPI Viewer utility.NET API Viewer Utility
    System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6

Posting Permissions

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



Click Here to Expand Forum to Full Width