Macro stopped running

matthewlouis

Active Member
Joined
Mar 28, 2014
Messages
374
Office Version
  1. 365
  2. 2019
Platform
  1. Windows
When I open worksheet, there is a macro that is supposed to run. When I hit Alt F11, the box is grayed out with no code.

I don't code, just a formula guy, this was a macro someone here on the board helped me with. So I am dense on coding. But this is a great macro.

When I open the worksheet, I am not asked anything. I went to File>Info> and the Security Information is not restricting (I trust the source).

What happened to the macro and why is the box grayed out and no code is there?

Thanks in advance!
 
When I follow instructions after Alt F11, hit Ctrl-S, and then Alt-Q, etc... it isn't starting the macro.
 
Upvote 0

Excel Facts

Create a Pivot Table on a Map
If your data has zip codes, postal codes, or city names, select the data and use Insert, 3D Map. (Found to right of chart icons).
Yes, I see VBA code when I hit ALT F11
But WHERE???
As I said, which module it is in is key here.

Go back and read what I wrote in my last post more carefully.
You want to specifically check the ThisWorkbook and appropriate Sheet modules for code.
They will probably NOT be the ones you first see when you hit ALT+F11, so you will probably need to click on them to inspect them.

If you have trouble following along, take some time to read the link I gave you.
 
Upvote 0
See picture
 

Attachments

  • 91.png
    91.png
    65.2 KB · Views: 1
Upvote 0
I'm sorry, I do not see ThisWorkbook
As I said, I am WEAK when it comes to coding
 
Upvote 0
I'm sorry, I do not see ThisWorkbook
As I said, I am WEAK when it comes to coding
Scroll up in your VBA Project Explorer. Every workbook has one:

1687457555831.png


When you find it, double-click on it, and check for any VBA code.
Do the same for the Sheet module of the sheet that has the data this is running against (check for VBA code in that particular module).
 
Upvote 0
OK, see attached, this is what I see.
 

Attachments

  • 92.png
    92.png
    82.5 KB · Views: 3
Upvote 0
Please double-click on "ThisWorkbook". A new VBA code window should pop-up showing you the code in that module.
The window you are showing is for "Module2", not "ThisWorkbook".
 
Upvote 0

Forum statistics

Threads
1,215,444
Messages
6,124,891
Members
449,194
Latest member
JayEggleton

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