Forum

Notifications
Clear all

Copy & Paste protected cells

4 Posts
2 Users
0 Reactions
3,057 Views
Katherine Williams
(@katherinew)
Posts: 17
Eminent Member
Topic starter
 

I need to copy several rows of a worksheet and paste them further down in the same worksheet while keeping any protected cells, protected in the pasted rows.  People will be selecting "chunks" of cells from a spreadsheet and using them to repeat data below, changing a couple of cells that aren't protected.  

I can't figure out how to do that... has anyone had any experience with this?  I'm sure that there MUST be a way...

 

Thank you for your time!

 
Posted : 05/05/2021 1:33 pm
(@mynda)
Posts: 4761
Member Admin
 

Hi Katherine,

The cells you want users to paste into would need to be unprotected before pasting. They can't paste into a range of cells that contains some locked and some unlocked and likewise, copying and pasting a cell that's locked does not bring the locked status with it upon pasting. You'd need to unprotect the sheet before pasting. I hope I've understood what you mean, but please clarify if not.

Mynda

 
Posted : 06/05/2021 4:04 am
Katherine Williams
(@katherinew)
Posts: 17
Eminent Member
Topic starter
 

Thank you Mynda!  I do understand that process, but is there a way or a formula that will keep the pasted cells locked if the copied cells are locked?  My goal is that when the group of cells are copied, and then pasted, the ones containing formulas won't be able to be typed over.  I want to protect the pasted formulas without the user having to protect them once they've been pasted.

 
Posted : 06/05/2021 10:09 am
(@mynda)
Posts: 4761
Member Admin
 

Hi Katherine,

No, it's not designed to work that way. If you want to circumvent the process you'd have to write some VBA code that unlocks the worksheet, allows the user to paste, then locks it again, but with that approach you may as well leave the sheet unprotected.

The other alternative is to set up the spreadsheet with all the formulas already in place so they don't need to be copying and pasting.

Mynda

 
Posted : 06/05/2021 9:16 pm
Share: