r/ExcelTips • • Aug 23 '22

Keeping Cell Values

I'm working on a spreadsheet that will be used by some not so tech savvy people so I'm trying to automate as much as possible. I want to automatically copy information put into the cells in one column (column A) to the cells in another column (column B) but have column B retain that info if it's reference cell in column A is deleted. Any help?

0 Upvotes

3 comments sorted by

2

u/[deleted] Aug 23 '22

It seems like you need to "Paste Values".
It can be done manually from the ribbon, right-click or a keyboard shortcut.
I'm not aware of a way to make this entirely automatic.
The closest thing is likely a VBA macro.
Here is VBA that does it with a single click if you assign it to a button.

Sub CopyRangePasteValues()
Range("A1:A10").Copy
Range("B1:B10").PasteSpecial Paste:=xlPasteValues
End Sub

2

u/Walled_en Aug 23 '22

Ahhh I was worried about that. Hopefully I can successfully teach these people how to copy and paste without too much hassle. Thanks!

2

u/GanonTEK Aug 23 '22

The button way they mentioned makes it essentially foolproof. Just press it when you want to copy/paste and it's done.