Excel 365 macros disappeared...

sadams1

Board Regular
Joined
Aug 19, 2006
Messages
221
OK...I've read hours online about this nightmare & here's what I've done & found out...

1) going to View > Macros...suddenly shows nothing
2) adding the "Developer" then going to "Visual Basic"...all macros are visible

How in God's name can this be fixed.
I've exported all modules & can't even import the dumb things

3) have gone through all "options" to make sure macros are enabled
4) nothing is disabled
 

Excel Facts

Shade all formula cells
To shade all formula cells: Home, Find & Select, Formulas to select all formulas. Then apply a light fill color.
This can perhaps be explained by the type of procedures you have in your workbook and whether or not they require arguments. As an example:
1646188978956.png
1646189059093.png

Here you can see that I have 4 functions and 2 subs, but only 1 of them appears in the View Macros Window.
Why? Functions won't appear in the Macro View window at all, and subroutines will only appear if they do not require an argument. Subroutines located in userforms or class modules will not be listed here, neither will any subroutines located in a module marked with Option Private Module. Which leaves standard modules and worksheets. Hopefully one of these applies to your circumstances - it may be worth putting a small subroutine in a standard module and checking. Say:

Sub Test()
MsgBox "Hello World!"
End Sub
VBA Code:

Did that work?
 
Upvote 0
hello Dan, there were almost 20 macros & none required input. Several were started with keyboard shortcuts. This is just baffling.
 
Upvote 0
meant to emphasize that macros can't be made...I record something & it doesn't show in the window.
 
Upvote 0
And when you're recording these macros,
1646191893148.png

or when you're looking for them, you have the correct workbook setting?
1646191818902.png

They're not being saved in a different workbook, or your Personal.XLSB?
 
Upvote 0
Also - did you try the test code I suggested? See if it appears?
 
Upvote 0
Correct...followed those steps. To add to the bizarreness, I have a recent copy of the workbook (with the macros) so I opened it along with the current version (now missing the macros) & the keyboard shortcuts I use the start the macros work in the current version but do not show in the macro window. Also, I have never messed with or even know where the "personal.xlsb" file is. I read about this as well.
 
Upvote 0
so you don't think I'm crazy...
1st is screenshot from "View > Macros"
2nd from "Developer > VBA" (all Modules visible in both [folder not expanded])
 

Attachments

  • Untitled.png
    Untitled.png
    51.5 KB · Views: 81
  • Untitled1.png
    Untitled1.png
    107.4 KB · Views: 81
Upvote 0
This is what's really confusing...using the "Developer > VBA" path, since the modules are visible, there's nothing to import. Using the "View > Macros" path, there's no active option to do anything since the window is blank.
 
Upvote 0

Forum statistics

Threads
1,223,911
Messages
6,175,327
Members
452,635
Latest member
laura12345

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