Macros stopped working?

MarcosM

New Member
Joined
Aug 27, 2019
Messages
9
Hi Guys, I recently got some great advice on here regarding a function I wanted to get working.

I added some code to the vb module, referenced it back in the worksheet and all worked great for a couple of days.

Im now opening the *xlsm and none of the calculations are working, just #NAME ?

Any ideas?
 

Excel Facts

VLOOKUP to Left?
Use =VLOOKUP(A2,CHOOSE({1,2},$Z$1:$Z$99,$Y$1:$Y$99),2,False) to lookup Y values to left of Z values.
A few things to check.
1) Does the Function still exist in that workbook?
2) Are macros enabled?
3) Has the function been renamed?
 
Upvote 0
Ive just checked and the code was missing from the module...!! Re added and it works fine now!

I never thought to check as I cant think of a reason why it would suddenly not be there are using the workbook many times..?
 
Upvote 0
If all code disappeared it could be that the file was saved as an .xlsx at some point.
If it was just the Function that disappeared, then maybe the module was deleted by mistake.
 
Upvote 0
You're welcome & thanks for the feedback
 
Upvote 0

Forum statistics

Threads
1,223,893
Messages
6,175,240
Members
452,621
Latest member
Laura_PinksBTHFT

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