Share via

VBA Macro "Security" Issue

Anonymous
2019-02-22T13:37:27+00:00

I'm writing a macro for work and was able to run it yesterday before I left.  I came in this morning and I cannot exit designer mode; I receive an error "Cannot run the macro 'ABC'.  The macro may not be available in this workbook or all macros may be disabled.  However, I am able to run a previously written macro without any issue.

My first step was to go into the macro settings (Developer tab > macro security > macro settings) to ensure "Enable all macros" option was clicked.  It is.  I then tried running the macro through the visual basic debugging tool (where you enter the code, change userforms / modules, etc.) When I try to manually run the macro, it says "The macros in this project are disabled.  Please refer to the online help or documentation of the host application to determine how to enable macros."  

I would believe this could be a security issue on my computer (firewall or otherwise), but again, I can run a previously written macro without any issue.

Any suggestions on where to start?

Microsoft 365 and Office | Excel | For home | Windows

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

1 answer

Sort by: Most helpful
  1. Anonymous
    2019-02-22T14:47:31+00:00

    I solved my own issue - in case anybody else reads this:

    Above the "macro settings" is "ActiveX Settings" - I had "Prompt me before enabling all controls with minimal restrictions" checked.  Changing this to "Enable all controls without restrictions" allowed it to run.

    Was this answer helpful?

    2 people found this answer helpful.
    0 comments No comments