Keep destination formatting when pasting?

D

Doug

How can I set the destination workbook to retain format settings when I paste
new data into the sheet? For example, I am trying to copy from an xlsm file
and paste it into another xlsm file. The file I am copying from is all in
general format and the one I am pasting to has text to column modifications
and other formatting that is forgotten when I paste the new data. This is a
real headache and it would be great if someone knows how?
--
 
G

Gary''s Student

Selection.PasteSpecial Paste:=xlPasteFormulas

will paste values and formulas, but not formats.
 
D

Doug

Thank you! It worked great. I just needed to reformat the text to column to
change a date format.
 

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