Results 1 to 5 of 5

Thread: Preventing outlook security features from excel vba

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Jul 2005
    Posts
    16

    Preventing outlook security features from excel vba

    Hi All

    I have developed a VBA in excel which send emails via outlook object.
    I have Excel 97 with Outlook2000 SP3 installed. From SP3 onwards MS have introduced some security featues which gives a popup "A program is trying to access your address book do you want to allow" only if we give yes we can proceed further.
    So do anybody have idea of how to suppress this popup via code or changing any registry entries.

    Thanks In Advance
    Mahesh JJ

  2. #2
    PowerPoster techgnome's Avatar
    Join Date
    May 2002
    Posts
    34,687

    Re: Preventing outlook security features from excel vba

    Nope.... it's a feature, to prevent email hijacking. As far as I know there isn't a way around it. At least none that I have seen.

    Tg
    * I don't respond to private (PM) requests for help. It's not conducive to the general learning of others.*
    * I also don't respond to friend requests. Save a few bits and don't bother. I'll just end up rejecting anyways.*
    * How to get EFFECTIVE help: The Hitchhiker's Guide to Getting Help at VBF - Removing eels from your hovercraft *
    * How to Use Parameters * Create Disconnected ADO Recordset Clones * Set your VB6 ActiveX Compatibility * Get rid of those pesky VB Line Numbers * I swear I saved my data, where'd it run off to??? *

  3. #3
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: Preventing outlook security features from excel vba

    Welcome to the forums.

    In addition to what techgnome said, I believe I read somewhere that this is as actually feature of XP, but I've only seen it manifest itself in Outlook.

  4. #4

    Thread Starter
    Junior Member
    Join Date
    Jul 2005
    Posts
    16

    Re: Preventing outlook security features from excel vba

    Hi
    Thanks for your replies..
    Actually we need to do a batch process which is done using windows scheduler. So here we need a user interupption . Actually there are some 3rd party tools which suppress this popup. But iam looking into a way which can be acheived thro code or changing registry values..

    Bye
    Mahesh

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

    Re: Preventing outlook security features from excel vba

    No, your correct, from Outlook 2000 SP3 MS has intruduced more and more restrictions on what can and can not be accesed
    programmatically without incurring the security prompt.

    You may be able to write an Add-In for Office targeting Excel and Outlook but probably easier to just switch to SMTP to send
    your emails. Try a search for SMTP for there are several examples using it on the Forums.
    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