Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I have the following code to loop through each sheet in the workbook and
format the columns to Autofit: For Each Worksheet In ActiveWorkbook.Worksheets Cells.Select Selection.EntireColumn.AutoFit Next It only seems to Autofit the columns on the first sheet and all the others remain unchanged except that they have all cells selected. Can anyone advise as to what I am doing wrong here? or a better way to do this? -- K Hogwood-Thompson |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Looping through sheets | Excel Programming | |||
Looping a column in workbook 1 to workbook 2's sheets | Excel Programming | |||
Looping through Sheets | Excel Programming | |||
Looping through Sheets | Excel Programming |