"The macro cannot be found or has been disabled because of your Macro security settings" Error in VBA PPT Ribbonx

In VBA PPT custom ribbon tab throws this error, "The macro cannot be found or has been disabled because of your Macro security settings" while running some macros . But it doesnt appear while running from the code. Please help solve it. The attach file contains all the macros and ribbonx code. Set Text Margins (Module1.frmIntMargin_show1) is an example of the error
Member_2_6293242Asked:
Who is Participating?
 
JSRWilsonCommented:
The message you see is one of MSFT meaningless generic messages when there is an error and the code is interrupted by a manual reset  or END.

There are a lot of potential errors in your code (eg declaring margins as string when they are Singles). but removing the END command should stop this one.
0
 
AlanConsultantCommented:
Nothing attached?
0
 
Member_2_6293242Author Commented:
Here is the source file. didnt get attached earlier due to file extension. Please change .txt to .pptm.
Zen-Tools.txt
0
 
Member_2_6293242Author Commented:
Hi JSRWilson, Thanks so much, it solved. I have replaced the End statements with Me.unhide. Also Margin declarations are now changed to singles, etc. Could you please suggest any other improvement points in this code. Thanks again.
0
 
JSRWilsonCommented:
Poster says solved
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.