enable macros in my file

RAJESH1960

Banned for repeated rules violations
Joined
Mar 26, 2020
Messages
2,313
Office Version
  1. 2019
Platform
  1. Windows
Hello guys

I am facing a problem in excel sheet. I have created a few macros in my workbook. They were running fine till the last time I worked. When I opened the workbook now, it did not ask whether to enable macros and straight away opened the sheet. When I tried to run the code in the button, it displays cannot run the macro. The macro may not be available in this workbook or all macros may be disabled. I can’t understand why. What is the solution for this problem.?
 

Excel Facts

Waterfall charts in Excel?
Office 365 customers have access to Waterfall charts since late 2016. They were added to Excel 2019.
what is the file extension of your workbook-file? xlsx or xlsm?
 
Upvote 0
what is the file extension of your workbook-file? xlsx or xlsm?
Xlsm. I have been working on it since many days. It was working fine. Today all of a sudden the micros disabled
 
Upvote 0
Xlsm. I have been working on it since many days. It was working fine. Today all of a sudden the micros disabled
If I run the code within the visual basic, where the code is written, it works. For each code I have to open and select the code to run. That is what I am able to do now.
 
Upvote 0
Did you check file->options-> security, the enable macro settings?
 
Upvote 0
The correct macro names assigned to the buttons? What happens when you select them via Developer->Macro->run?
 
Upvote 0
Did you check file->options-> security, the enable macro settings?
You mean the trust centre settings. Yes I checked. Disable all macros with notification is checked.
 
Upvote 0
The correct macro names assigned to the buttons? What happens when you select them via Developer->Macro->run?
The macro works. I opened one of my other macro enabled file. It is asking for permission to enable the macro. So I think the problem is in this sheet only. I closed and reopened the file I am working on but it is still not working.
 
Last edited:
Upvote 0
What happens when you select the macro via Developer Tab->Macro->run?
 
Upvote 0
Tim
The macro works. I opened one of my other macro enabled file. It is asking for permission to enable the macro. So I think the problem is in this sheet only. I closed and reopened the file I am working on but it is still not working

What happens when you select the macro via Developer Tab->Macro->run?
It runs the code right. Time to hit the sack. Will check again tomorrow. Thanks Zyndstoff for responding.
 
Upvote 0

Forum statistics

Threads
1,215,327
Messages
6,124,294
Members
449,149
Latest member
mwdbActuary

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