+ Reply to Thread
Results 1 to 5 of 5

Code to automatically enble/disable security notice for macro?

  1. #1
    Registered User
    Join Date
    07-21-2011
    Location
    melbourne, florida
    MS-Off Ver
    Excel 2010
    Posts
    39

    Code to automatically enble/disable security notice for macro?

    Is there a code that will allow me to automatically "Enable Macros" or "Disable Macros" when the "Microsoft Excel Security Notice" pops up in Excel? My code currently is setup to open and close for copying a pasting from one workbook to another so this warning pops up about 20 time while the code is running and it would be nice to enable to macros without having to click the button every time.

    Thank you

  2. #2
    Forum Guru JosephP's Avatar
    Join Date
    03-27-2012
    Location
    Ut
    MS-Off Ver
    2003/10
    Posts
    7,328

    Re: Code to automatically enble/disable security notice for macro?

    if you are opening and closing workbooks in code the message should not appear.
    Josie

    if at first you don't succeed try doing it the way your wife told you to

  3. #3
    Registered User
    Join Date
    07-21-2011
    Location
    melbourne, florida
    MS-Off Ver
    Excel 2010
    Posts
    39

    Re: Code to automatically enble/disable security notice for macro?

    I may have said that wrong since im not that experienced with excel, but the code it setup in a way to where the notice pops up after every process in the code.

  4. #4
    Registered User
    Join Date
    04-17-2012
    Location
    Texas, USA
    MS-Off Ver
    Excel 2007
    Posts
    8

    Re: Code to automatically enble/disable security notice for macro?

    Can you post the code you are using? My crystal ball is a bit overcast today...

  5. #5
    Registered User
    Join Date
    10-26-2004
    Location
    Portland, Oregon
    MS-Off Ver
    Excel in Windows
    Posts
    49

    Re: Code to automatically enble/disable security notice for macro?

    There is not, however you can adjust your Trust Center security setting. Enable macros or use the Trusted Location setting.
    ~Toby

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

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

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1