Formula being replaced by fixed value

RichardMGreen

Well-known Member
Joined
Feb 20, 2006
Messages
2,177
Hi all

I've got a fairly complex workbook that contains a lot of macros and a userform.

On the front sheet, there are various cells with formulas in them.
One cell in particular keeps having it's formula overwritten by the fixed value and I can't see why.
There also seems to be no pattern to when it happens (I've tried trapping the change to see if I can see what I've just done but that's not helping).

I've checked all my macro code and that cell isn't mentioned anywhere so I don't thin it's anything to do with the userform but I'm not ruling that out completely).
Bizarrely, it can also happen when I change a validated cell (this one contains times) but there's no code attached to that sheet.

Before I throw the whole thing out and start again, can anyone suggest what I can do to try and track this down please?

One small point that may be a red-herring......
The userform did (before I changed it) write directly to the cell in question.
I've made sure that it's all been updated to the new cell but I'm not sure if it's got a bit scrambled somewhere........
 

Excel Facts

Enter current date or time
Ctrl+: enters current time. Ctrl+; enters current date. Use Ctrl+: Ctrl+; Enter for current date & time.
Maybe you could save a copy as a non-macro-enabled workbook, close and open the file again, and see if you can trigger the change. If it still happens, you can eliminate macros as the cause.

If it only happens in a macro-enabled workbook, you may want to scrub through the macros again (in forms as well as modules) to see if there is an event-triggered macro....
http://www.excel-easy.com/vba/events.html
 
Upvote 0

Forum statistics

Threads
1,215,002
Messages
6,122,652
Members
449,092
Latest member
peppernaut

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