kmwhitt said:
Hi RagDyer:
I'm not following you. I am creating a pricing utility. The user may need
to copy a row of data (or just a few cells) and paste it into another line
item. When this happens, the alternating colored rows get all bungled up.
How can I make Excel keep the format in this range constant no matter what
type of cut, copy or paste event takes place?
I was thinking a function that runs under _change that resets the
conditional formatting you suggested below. Any ideas?
Thanks,
Kevin
While trying to solve a problem somewhat different from
yours, I came up with this after searching Google groups for
the string:
excel "paste event"
Private Sub Worksheet_SelectionChange(ByVal Target As Range)
If Application.CutCopyMode = False Then Exit Sub
Select Case Application.CutCopyMode
Case Is = xlCopy
x = 1
Case Is = xlCut
Application.CutCopyMode = False
MsgBox "Action cancelled"
End Select
End Sub
I am still working on it. You can't use it as it is, but you
might wish to modify it to suit your needs. Whenever x=1,
you would have to modify Copy/Paste to
Copy/PasteSpecial/Values. I've seen several threads dealing
with that (including this one).