pastespecial question

G

Gary Keramidas

i want to paste values and formats, this option seems to be missing.

so, i if use this to copy the values
Workbooks(CurBook).Worksheets("sheet1").Range("c" & firstrow).PasteSpecial
xlValues
and then run this right after
Workbooks(CurBook).Worksheets("sheet1").Range("c" & firstrow).PasteSpecial
xlFormats

it seems to work, but also seems to slow things down a little.
i realize i could copy the values and then reformat the sheet, but ti seems
like a waste.

is there another way to combine the 2 options i want?
 
B

Bob Phillips

If you have XL2002 there is an xlPasteValuesAndNumberFormats constant that
you can use.
 
D

Dave Peterson

do two .pastespecial's right in a row.

something.copy
someotherrange.pastespecial paste:=xlpastevalues
someotherrange.pastespecial paste:=xlpasteformats

Or some combination of what you need.
 
G

Gary Keramidas

that's what i ended up doing, just wondered if there was another way.

thanks for confirming
 

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