Excel macros disappeared

0 votes
My Excel file had a load of macros and now when I click Developer - Macros, they don't show up in the list, the list is empty. How do I fix?
Sep 25, 2022 in Others by Kithuzzz
• 38,000 points
17,171 views

1 answer to this question.

0 votes
Open the file in protected mode (usually I save it on the shared network so it prompts me to "Enable Content"). You must make sure you're in the protected mode so no macros/libraries are activated.

DON'T ENABLE CONTENT

Go to Developer, Visual Basic, then click on "Debug" and click on "Compile VBA Project".

Save the file  > Close  > Reopen.
answered Sep 26, 2022 by narikkadan
• 63,600 points
have you done this? If you open the file, force "Enable Editing" to be up top so no macros are in the file or opened, then go into macros and go to the project then do "Compile VBA Project", then it will not let you save the file, because editing was disabled. ?
After doing this fix.  The issue came back and now when we open file in protected view, the code is missing and the debug is greyed out.
If even this doesn't work, just create a new macro with error and save and close the file. Now follow the above steps.

DON'T ENABLE CONTENT

Go to Developer, Visual Basic, then click on "Debug" and click on "Compile VBA Project". At this time, you can delete the new error Macro you added.

Save the file  > Close  > Reopen.  Now all macros will appear.
I had the same issue, I checked all my content enablement, and everything looked ok.  I think it is a glitch.  What I did was add another module, copied the macro into that, and voila, all the macros appeared again.  So I deleted my new module, and the original still persisted.  I think I triggered Excel to "remember" it had macros in the file, by adding a module to "wake it up".  I'm a layman so take this with a grain of salt.
Thanks for this
it worked, thanks for the solution

Related Questions In Others

0 votes
1 answer

Way to run Excel macros from command line or batch file?

Solution Open the workbook and run the macro ...READ MORE

answered Nov 14, 2022 in Others by narikkadan
• 63,600 points
7,259 views
0 votes
1 answer

How should I show the Developer tab in Excel using Macros? (Excel VBA)

You can activate (mode=1) or deactivate (mode=0) ...READ MORE

answered Nov 15, 2022 in Others by narikkadan
• 63,600 points
717 views
0 votes
1 answer

How do ask ChatGPT with API from Excel macros (vba)?

A few things that will help. Don't ...READ MORE

answered Feb 11, 2023 in Others by Kithuzzz
• 38,000 points
2,382 views
0 votes
0 answers

How to compare two excel sheets

How to compare two excel sheets , ...READ MORE

Jul 18, 2021 in Others by Sri
• 3,190 points
893 views
0 votes
1 answer

Retrieve epay.info Balance with VBA and Excel

This code should log you in, provided ...READ MORE

answered Sep 5, 2018 in Blockchain by digger
• 26,740 points
1,426 views
0 votes
1 answer

ImportError: openpyxl is required for loading excel format files

Forget the PsychoPy complications for the time ...READ MORE

answered Oct 3, 2018 in Python by Priyaj
• 58,020 points
1,255 views
0 votes
1 answer

In Blue Prism how to split excel column data into TWO columns

This is how I am doing it. Dim ...READ MORE

answered Oct 15, 2018 in RPA by Priyaj
• 58,020 points
4,499 views
0 votes
1 answer

Excel Power Query: Using List.MatchAny on a column value

try this. let TableA = ...READ MORE

answered Oct 22, 2018 in Power BI by Annie97
• 2,160 points
4,479 views
0 votes
1 answer

Trouble with excel macros (possibly encoding?)

To solve your issue: Replace your macro names ...READ MORE

answered Sep 26, 2022 in Others by narikkadan
• 63,600 points
1,066 views
0 votes
1 answer
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP