how paste column width?

I

Ian Elliott

I am copying and pasting some worksheets from one workbook
to another, using
selection.pastespecial paste:=xlPasteValuesAndNumberFormats
selection.pastespecial paste:=xlpasteformats

but the values pasted are too small for the column
although they were just fine for the original worksheet.
Is there a way to paste the column width? I thought
xlpasteformats did that.
Thanks
 
T

Tom Ogilvy

Excel 2000 supported this as well as I recall, but the constant
xlPasteColumnWidths was not defined. You had to hard code the value 8.

Regards,
Tom Ogilvy
 

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