enable macros in my file

RAJESH1960

Well-known Member
Joined
Mar 26, 2020
Messages
856
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.?
 

Zyndstoff

Board Regular
Joined
Aug 17, 2021
Messages
104
Office Version
  1. 2019
Platform
  1. Windows
Then the only solution seems to be that your buttons are not correctly assigned to the macros.
Reassign the macros and check.
 

Excel Facts

How to fill five years of quarters?
Type 1Q-2023 in a cell. Grab the fill handle and drag down or right. After 4Q-2023, Excel will jump to 1Q-2024. Dash can be any character.

Zyndstoff

Board Regular
Joined
Aug 17, 2021
Messages
104
Office Version
  1. 2019
Platform
  1. Windows
Right click on button and select macro:

1637270850160.png
 

RAJESH1960

Well-known Member
Joined
Mar 26, 2020
Messages
856
Office Version
  1. 2019
Platform
  1. Windows
Right click on button and select macro:

View attachment 51607
I tried re assigning the macros, saved and closed the workbook. Later I reopened it and still it doesn't ask for permission to enable. All the other macro enabled workbooks are having the same issues now. Will try and check it out at my work place today. Will update tonight ... 😓
 
Master Excel Bundle

Excel contains over 450 functions, with more added every year. That’s a huge number, so where should you start? Right here with this bundle.

Forum statistics

Threads
1,151,969
Messages
5,767,382
Members
425,410
Latest member
SmittyT

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
Top