Macros not working due to "invalid forward reference, or reference to uncompiled type"

Obewan

Board Regular
Joined
Aug 25, 2021
Messages
68
Office Version
  1. 365
Platform
  1. Windows
I have been using this macros for years and get this error. I deleted the sheet and replace it and then it gets past this goes onto an error in the next sheet, and so on until I've deleted 3 sheets then pasted them back in - the issue is the sheets have a lot of vlookup formula's to the old sheets so it will take me hours to fix them all.

Also all my macros have disappeared from my macro list

Any quicker suggestions?
 

Excel Facts

Waterfall charts in Excel?
Office 365 customers have access to Waterfall charts since late 2016. They were added to Excel 2019.
Nope. Same computer for years.
Did you investigate the various solutions provided in that thread?
It seems that there may be a myriad of reasons for getting that message, and different solutions worked for different people.

Is it only that one workbook having issues?
It is possible that you have have workbook corruption, and need to create a new workbook.
 
Upvote 0

Forum statistics

Threads
1,216,116
Messages
6,128,926
Members
449,479
Latest member
nana abanyin

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