Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4,391
Default Copy and Paste for columnwidth

Maybe these results copied from the immediate window will help you :

?xlPasteValues
-4163
?xlValues
-4163
?xlPasteFormats
-4122
?xlFormats
-4122
?xlPasteColumnWidths
8
?xlColumnWidths

i.e. the last value is undefined.

NickHK

"xk" wrote in message
...
Hi,

I need to do copy and paste special from one sheet to another sheet by
macro, for the whole thing include : value, format and column width, my
macro works for value and format, just can't done for column width.
Here is the part of my code:

With Worksheets(Worksheets.Count).Range("A7:Q57")
.PasteSpecial xlValues
.PasteSpecial xlFormats
.PasteSpecial xlColumnWidths
End With

.PasteSpecial xlColumnWidths is debuged wrong , anyone have an idea about

it?

Thanks a lot

xk



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Columnwidth Jean-Paul Excel Discussion (Misc queries) 1 November 24th 09 02:21 PM
ColumnWidth abhimanyu Excel Programming 1 November 10th 06 01:14 PM
ColumnWidth Dwight[_4_] Excel Programming 2 July 14th 04 08:22 PM
Selection.ColumnWidth Ron McCormick[_2_] Excel Programming 2 December 29th 03 11:41 AM
ColumnWidth not working... BEE Excel Programming 2 December 19th 03 06:29 PM


All times are GMT +1. The time now is 08:03 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"