none
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.

    https://social.msdn.microsoft.com/Forums/vstudio/en-US/e2749403-5971-442c-807d-dbaca5e219eb/how-to-disable-macros-in-excel-from-vbnet?forum=vsto


    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.

    StackOverFlow
    profile for Karen Payne on Stack Exchange

    Monday, May 20, 2019 4:01 PM
    Moderator
  • 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.
    msoAutomationSecurityLow

    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 vb.net.
    Ask in the following forum.

    https://social.msdn.microsoft.com/Forums/vstudio/en-US/home?forum=isvvba

    Best Regards,

    Alex


    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 MSDNFSF@microsoft.com.

    Wednesday, May 22, 2019 8:30 AM