Disabled macros and won't run

maclis

New Member
Joined
Oct 8, 2015
Messages
3
I have a workbook with a macro in a module file called by Ctrl+D but this fails with the error "Cannot run the macro. The macro may not be available or all macros may be disabled".

In the developer tab I can see the macro but the "run" "step into" and "edit" options are all disabled.

macro security is at its lowest setting and the option to trust the vba project is enabled.

any thoughts ?
 

Excel Facts

Can you sort left to right?
To sort left-to-right, use the Sort dialog box. Click Options. Choose "Sort left to right"
What's the macro's signature? (The Sub Whatever line)
 
Upvote 0
What's the macro's signature? (The Sub Whatever line)

don't think the macro is signed. I have found a way to re-enable the macro by running this code from inside the developer tab

ActiveSheet.Unprotect
ActiveSheet.Protect DrawingObjects:=True, Contents:=True, Scenarios:=True _
, AllowFiltering:=True


the environment of the workbook is a little odd; its stored inside an SAP BPC server and the Workbook.Open does not execute otherwise I could have just added this code to this macro.

Regardless, I think I have a solution but any idea what aspect of WORKSHEET PROTECTION blocks macros ?
 
Upvote 0
What is the first line of the macro -- the one that starts with Sub?
 
Upvote 0
its stored inside an SAP BPC server
I retract my question; I have no idea how Excel works inside SAP.
 
Upvote 0
Yes, its almost certainly due to something within SAP BPC addin but thanks for your help regardless
 
Upvote 0

Forum statistics

Threads
1,214,935
Messages
6,122,337
Members
449,078
Latest member
skydd

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top