Copy/paste loses cell formatting and data validation

petero

New Member
Joined
Oct 24, 2005
Messages
5
This is a well-known problem though I couldn't find a solution here or anywhere. When a protected sheet has cells which are not locked, but have formatting and data validation, a simple copy/paste into those cells from another sheet loses the formatting and validation in the target cells. Anyone know why this is, and if there's a workaroud?

On its face, ths issue seems like its a major drawback for anyone who builds excel models for others. Why there isn't a way to permanently lock the formatting/data validation is a mystery. Anyone help?
 

Excel Facts

Enter current date or time
Ctrl+: enters current time. Ctrl+; enters current date. Use Ctrl+: Ctrl+; Enter for current date & time.
you could add the formatting to another cell, then paste it automatically using the worksheet_change event. Not ideal, but ensures the formatting stays - but you do lose the undo option
 
Upvote 0
If you want to retain Formatting and Validation do not copy/paste, use copy/pastevalues.
 
Upvote 0
If you've developed excel applications for 1000 users, you'd know that's not a practical solution.

Losing undo is obviously not optimal either. WHY doesn't MSFT address this???
 
Upvote 0
what about resetting the formats on worksheet close? the only person affected by the format loss is the person that pasted, so preseumeably they don't need to worry as they've already done what they need to do, and Undo isn't an issue either?

Just create a "formats" routine, and add whatever you want, running before close, this corrects the whole model...
 
Upvote 0
and please don't suggest that MS perfect everything, I make a decent living out of the fact that Excel confuses the hell out of everyone I work with, thank you very much :rofl:
 
Upvote 0
Formatting at close is an interesting idea but misses the data validation issue entirely. If I build a spreadsheet model where the user in a particular cell on a PROTECTED sheet can only put in an integer between 1 and 10, they can type "cat" in a cell of another sheet and paste that into my properly data validated cell. Formatting at close does not address that problem at all - and its a BIG one.

I honestly just don't get how excel doesn't support this somehow. It would basically be some sort of protected cell/sheet option switch that only allowed "paste/special/values" for pasting when the sheet is protected - and DATA VALIDATION AND FORMATTING is PRESERVED (apologies for the caps, this is just too irritating for lowercase)
 
Upvote 0

Forum statistics

Threads
1,222,827
Messages
6,168,482
Members
452,192
Latest member
FengXue

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