K
Ken Johnson
When I manually Copy then Paste Special>Paste Formats only the formats
are pasted, not the values.
However, when I use the following code in a WorksheetChange Sub...
Cells(1,1).Copy
Target.PasteSpecial Paste:= xlPasteFormats
the value from A1 is also pasted. I want Target to keep it values, not
have them changed to A1's value.
What do I have to do to stop the value from being pasted too?
At the moment I'm using a variant array to store the original values in
Target then feeding those values back into Target after the format has
been pasted.
I am hoping there is an easier way to get the code to work the same way
as the manual process.
Ken Johnson
are pasted, not the values.
However, when I use the following code in a WorksheetChange Sub...
Cells(1,1).Copy
Target.PasteSpecial Paste:= xlPasteFormats
the value from A1 is also pasted. I want Target to keep it values, not
have them changed to A1's value.
What do I have to do to stop the value from being pasted too?
At the moment I'm using a variant array to store the original values in
Target then feeding those values back into Target after the format has
been pasted.
I am hoping there is an easier way to get the code to work the same way
as the manual process.
Ken Johnson