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: 38
Default Code to change column widths?

I am running code to open a workbook and then I want to set all columns in
the workbook to 15.
I use:
..Workbooks.Open "C:\Shared\Report Info.xlsx"
..Columns.ColumnWidth = 15
This code only works on the first sheet in the workbook, but I need it to
work for all sheets.
Can someone please help me?
TIA
 
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
Column widths change with each new import from Access 2007 mhmyers40241 New Users to Excel 0 March 2nd 10 06:18 PM
Automatically change column widths? Ross Excel Discussion (Misc queries) 2 July 20th 07 07:58 PM
Why do column widths change in Excell? JPEgan Excel Worksheet Functions 1 January 13th 07 07:08 PM
Need to change column widths in middle of page. cruz2man Excel Discussion (Misc queries) 1 May 19th 06 04:11 AM
Excel column widths change on different machines Spud Excel Programming 0 April 22nd 04 06:53 PM


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

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"