why pasteSpecial formats but still colwidth not big enough?

I

Ian Elliott

I have a macro that copies and pastes worksheets from
another workbook. One of the worksheets pasted in has
cells with '######'s-the column widths are not big enough
for the numbers in the cells. The code in my macro is:
Selection.PasteSpecial Paste:=xlPasteFormats
Selection.PasteSpecial Paste:=xlPasteValuesAndNumberFormats
Selection.PasteSpecial Paste:=xlPasteColumnWidths

And since the original worksheet columns are wide enough
to not get "######'s I figure the destination should be
fine also. But I have this problem. Any ideas? Thanks!
 

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