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

Convert text numbers to real numbers
Select a column containing text numbers. Press Alt+D E F to quickly convert text to numbers. Faster than "Convert to Number"
Also, macro settings are Enable all Macros and Trust acccess to VBA object model is selected..
 
Upvote 0
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,214,585
Messages
6,120,397
Members
448,957
Latest member
Hat4Life

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