I know that you can do PASTE > VALUES in order to keep your conditional formatting on an existing sheet, but sadly the people in my office are prone to not understanding this ("It's a bit technical") and so they just pasting blocks of text from elsewhere and lose it all.....
Does anyone have any suggestions about how to maintain the formatting when people just do a traditional C&P ?
Thanks
Last edited by Barking_Mad; 03-16-2010 at 11:00 AM.
i think you have that the wrong way around a copy /paste will copy all formating paste values doesn't copy formatting
"Unless otherwise stated all my comments are directed at OP"
Mojito connoisseur and a dabbler in Cisco
where does code go ?
look here
how to insert code
how to enter array formula
why use -- in sumproduct
recommended reading
wiki Mojito
how to say no convincingly
most important thing you need
Martin Wilson: SPV
and RSMBC
Sorry - people are copy and pasting names from one sheet without conditioanl formatting into a new one, and this is resulting in the conditional formatting being erased.
Aside from them doing COPY > PASTE VALUES, is there another way to allow them to paste the information and keep the conditional formatting ive set up in the new sheet?
Hope that makes sense![]()
Makes perfect senseYou want to prevent users from clobbering your conditional formatting by pasting on top of it.
I could not find a simple way to do what you need, though I have learned not to say things are impossible. Typically user behavior is limited by using protection, but protection options are not granular enough in Excel for this particular situation. You can lock a cell and protect the sheet, and the user cannot change the formatting, but then the user cannot change the value either. If you unlock the cell, then the user can change the value, but can also change the formatting. I confirmed my understanding of this with some experiments.
One option would be to write some VBA based on the Worksheet_Change event. This event is triggered when data changes on a worksheet. You can't prevent the user from pasting a format, but you can write code that will at least detect the change, and can re-establish the conditional formatting. This is straightforward but a bit challenging if you haven't written VBA before. Also, the user must allow macros to run.
Making the world a better place one fret at a time
||||||
If someone helped you, please click on the star icon at the bottom of their post
If your problem is solved, please update the first post:
EDIT, Go Advanced button, set Prefix to SOLVED
[code]
' Enclose code in tags like this
[/code]
Don't attach a screenshot--just attach your Excel file! It's easier and will let us experiment with your data, formulas, and code.
dave hawley posted a possible work around basically copy the formats to another sheet
when something is changed they are then copy/pasted back
http://www.ozgrid.com/forum/showthread.php?t=57202 but as
6StringJazzerusers have to enable macros if thet dont they could paste away to their hearts content
"Unless otherwise stated all my comments are directed at OP"
Mojito connoisseur and a dabbler in Cisco
where does code go ?
look here
how to insert code
how to enter array formula
why use -- in sumproduct
recommended reading
wiki Mojito
how to say no convincingly
most important thing you need
Martin Wilson: SPV
and RSMBC
Thanks for your help, both of you. Ill class this as solved as I can do the rest....
Not sure why Dave used Worksheet_SelectionChange instead of Worksheet_Change, since the former will cause formats to be re-copied every time the user clicks on a different cell, even when nothing changes. It's probably fast enough that the user wouldn't notice, though.
Making the world a better place one fret at a time
||||||
If someone helped you, please click on the star icon at the bottom of their post
If your problem is solved, please update the first post:
EDIT, Go Advanced button, set Prefix to SOLVED
[code]
' Enclose code in tags like this
[/code]
Don't attach a screenshot--just attach your Excel file! It's easier and will let us experiment with your data, formulas, and code.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks