LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 161
Default Change column width

To change the column width of column "A", the following code
will work:

Columns("A:A").ColumnWidth = 1.57

Is it possible to reference each column with a numerical
index? Rather than using "A:A"?

I was hoping that the following code would work, but
it doesn't:

Columns(1,1).ColumnWidth = 1.57 ' wrong



 
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
Why can't i change column width? Carole S Excel Discussion (Misc queries) 4 April 4th 23 10:10 AM
Change Cell Width WITHOUT changing Column width dww701 Excel Discussion (Misc queries) 1 January 12th 09 10:52 PM
Change the column width Nikolaus Excel Discussion (Misc queries) 3 December 18th 08 08:36 PM
change column width Ed[_2_] Excel Discussion (Misc queries) 1 July 17th 07 06:40 AM
Change the width of a single column in a column chart Dave Charts and Charting in Excel 2 December 13th 04 07:25 PM


All times are GMT +1. The time now is 04:32 PM.

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

About Us

"It's about Microsoft Excel"