Copy and Paste values but not formulas

Samhill62

Board Regular
Joined
Jun 2, 2016
Messages
54
I have a spreadsheet that has two columns of formulas and following a change to certain other cells within the worksheet, return a prescribed value.
I am looking for some vba code that will automatically freeze the calculated data in the cells without affecting any of the other formula when the workbook is closed.
Does anyone have any similar code they may be able to share please?
 

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"
Range("A1:A100").value = Range("A1:A100").value

Will, for example, retain the calculated values in the A1:A100 range and overwrite the existing formula.

Let me know if this will give you what you want.
 
Upvote 0
Hi Herakles, thanks for the speedy response. I too tried the exact solution you gave me but unfortunately it clears the formula from the rest of the cells in the Column.
 
Upvote 0
The A1:A100 range was only an example I used.

You need to substitute it with your range.

What range do you want to use?
 
Upvote 0
When you say that it clears the formula in the other cells in the column, what does it relpace it with?

Does it do what you want for the A1:A100 range?
 
Upvote 0
When you say that it clears the formula in the other cells in the column, what does it relpace it with?

Does it do what you want for the A1:A100 range?
It completely clears the formula from the rest of the cells to the bottom of column A, deleting the formula.
 
Upvote 0
It works for me so I don't know what else is happening on your sheet.
 
Upvote 0

Forum statistics

Threads
1,215,416
Messages
6,124,774
Members
449,187
Latest member
hermansoa

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