Preserve the formatting of a cell when pasting into it

B

bg_ie

Is there a way of copying the text in a cell and pasting it into a new
cell without changing the formatting (color etc) of the cell your
pasting into?

Thanks,

Barry.
 
A

aidan.heritage

Is there a way of copying the text in a cell and pasting it into a new
cell without changing the formatting (color etc) of the cell your
pasting into?

Thanks,

Barry.

paste special, then choose values
 
B

bg_ie

paste special, then choose values

Thanks for your reply. The problem is that I don't want the user to
have to use paste special. I wan't them to simply use ctrl c and ctrl
v. I'm currently handling Worksheet_Change, and I've tried using
Cells.Copy at the start of the function and Cells.PasteSpecial
Paste:=xlFormats at the end, but I'm getting an error that
PasteSpecial has failed.
 
A

aidan.heritage

Thanks for your reply. The problem is that I don't want the user to
have to use paste special. I wan't them to simply use ctrl c and ctrl
v. I'm currently handling Worksheet_Change, and I've tried using
Cells.Copy at the start of the function and Cells.PasteSpecial
Paste:=xlFormats at the end, but I'm getting an error that
PasteSpecial has failed.

Try getting away from copy and paste - for instance

range("c3").value=range("b2").value

would put the value of B2 into C3 without changing the formatting of C3
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top