VBA Quick way to convert whole sheet to values?

LNG2013

Active Member
Joined
May 23, 2011
Messages
466
Is there a quick way to change a whole sheet into just it's values, so it's values after the formulas?
 

Excel Facts

Lock one reference in a formula
Need 1 part of a formula to always point to the same range? use $ signs: $V$2:$Z$99 will always point to V2:Z99, even after copying
Go to the worksheet you want to convert and, with that sheet active, go into the VB editor (CTRL+F11), then find the Immediate Window (CTRL+G if it is not already showing) and type this into it...

Code:
ActiveSheet.UsedRange.Value = ActiveSheet.UsedRange.Value

and finish your typing off with a press of the Enter key. That's it... go back to the worksheet and you will find all formulas have been replaced by the data they were displaying.
 
Upvote 0
Wow dude fantastic that worked like a charm!!!!
There is a manual way to do this also... select all the cells on the worksheet (click the empty cell where the row headers meet the column headers), press CTRL+C, then right-click the selection and select "Paste Special..." from the popup menu that appears, select the Values option button on the dialog box that appears and click OK. Press escape to get rid of the "marching ants" and click anywhere to get rid of the selection. At this point, all your formulas have been converted to their displayed values.
 
Upvote 0

Forum statistics

Threads
1,224,211
Messages
6,177,162
Members
452,762
Latest member
manuha

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