Editing the Formulas with VB

thespardian

Board Regular
Joined
Aug 31, 2012
Messages
119
Office Version
  1. 2016
  2. 2013
Platform
  1. Windows
Hi there!
I have a workbooks which contain 24 sheets. I want to disable the formulas on all sheets (All the formula cells should return zero, blanks, error or any other), If the date in sheet1 cell A1< today().

Manual editing the formulas on all sheets required a lot time. Because there are many formula columns on every sheet. Therefore i am seeking for help with vb.

Any help will be highly appreciated.
 

Excel Facts

How can you turn a range sideways?
Copy the range. Select a blank cell. Right-click, Paste Special, then choose Transpose.
So we want to look through all sheets in your workbook. And if the value in Range "A1" of that sheet equals Today. Then all the cells in that sheet should be converted to values not formulas.
Is that correct? Or are you saying clear all the values in any cell that has a formula?
 
Upvote 0
Thanks for your prompt reply.

If the range A1 of sheet1 is less than today, then the formula should return, zero etc (the formula should stop working). but if we manually change/increase the value (If the range A1 of sheet1 is greater than today) , the formula should start working again.
 
Last edited:
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,181
Members
453,022
Latest member
Mohamed Magdi Tawfiq Emam

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