Avoiding Enable Macro notification in MS-Excel RRS feed

  • Question

  • Hi,

    I have a excel with macro button events. I need to send this excel to many users. They want  to work on the excel without clicking on "enable macro" notification which pops up every time you open the excel. The Default Macro setting in all the Users' system is "Disable Macro and notify".

    Monday, May 20, 2019 10:28 AM

All replies

  • Hello,

    See the following post, have not tried this myself but looks like it may work.

    Please remember to mark the replies as answers if they help and unmarked them if they provide no help, this will help others who are looking for solutions to the same or similar problem. Contact via my Twitter (Karen Payne) or Facebook (Karen Payne) via my MSDN profile but will not answer coding question on either.

    NuGet BaseConnectionLibrary for database connections.

    profile for Karen Payne on Stack Exchange

    Monday, May 20, 2019 4:01 PM
  • Thanks! But the link did not help. I want to Enable Macros. Not disable. I found this,

    msoAutomationSecurityForceDisable Disables the macros in all documents that are opened by previously enabled macros. This setting provides the highest level of security.
    msoAutomationSecurityByUI Respects the Warn before opening a file that contains macrospreference for macros in all documents opened by previously enabled macros.

    Enables the macros in all document that are opened by previously enabled macros.

    But all these options enables Macros only if it is previously enabled.

    Tuesday, May 21, 2019 6:27 AM
  • Hi,

    According to your description, your issue is more related about VBA. And this forum is discussing and asking questions about the
    Ask in the following forum.

    Best Regards,


    MSDN Community Support Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact

    Wednesday, May 22, 2019 8:30 AM