VB to get rid all formulas

Xirom431

Board Regular
Joined
Dec 2, 2010
Messages
113
Office Version
  1. 365
Platform
  1. Windows
Hi,
I need help with VB to get rid of formulas. Here is the scenario and the formulas in Sheet 4



Area 1
G​
H​
I​
J​
K​

Column H formula =IF(G6="","",G6)
Column I formula =IF(G6="","",G6)
Column J formula =IF(G6="","",IF(OR(H6>0,I6>0),"Open","Closed"))
Column K formula =IF(J6="","",IF(J6="Open",MAX(H6,I6),0))

The range is G6:G371. If the VB can run automatically each time the Workbook is open, that would be great. Many thanks.

 
Every time the workbook opens?
That leads me to believe that new rows of data and formulas are being entered all the time.
I think a bit more background/detail is needed.

How exactly are data and formulas being added to the workbook?

How often does it happen?

Is it only one row added each time, and can a whole block of rows/formulas be added in a single sesssion?
 
Upvote 0
Every time the workbook opens?
That leads me to believe that new rows of data and formulas are being entered all the time.
I think a bit more background/detail is needed.

How exactly are data and formulas being added to the workbook?

How often does it happen?

Is it only one row added each time, and can a whole block of rows/formulas be added in a single sesssion?
Everyday, data is manually enter in Column G based on today()
Currently, the formulas are copied down from H6:H371, I6:I371, etc...

1741012621155.png
 
Upvote 0
Hmmm, your request does not seem to make much sense to me.
If we convert all the formulas to hard-coded values, then there will be no formulas to copy down the next day.

We could instead just have VBA calculate those values behind the scene, and populate the values.
But let's take a step back for a minute.
Why is there a need to replace the formulas with hard-coded values?
What is the concern with leaving the formulas?
 
Upvote 0

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