Row Height/Column Width

klynshoe

Board Regular
Joined
Jun 17, 2010
Messages
176
Is there a way to change all the rows heights and/or column widths in a worksheet? The only way I know how is by selected the rows I wish to change and right-clicking.

USING EXCEL 2007
 

Excel Facts

Is there a shortcut key for strikethrough?
Ctrl+S is used for Save. Ctrl+5 is used for Strikethrough. Why Ctrl+5? When you use hashmarks to count |||| is 4, strike through to mean 5.
If you want to change all of the row heights and columns widths to a specific size you can use

Code:
Sub resize()
Range("A:IV").ColumnWidth = 8.43
Range("A1:A65536").RowHeight = 12.75
End Sub

Change 8.43 and 12.75 to whatever size you want.

Or if you just select the rows/columns you are interesed in you can autofit all of them by double clicking on the dividing line between the last row/column of intrest and the next one
 
Upvote 0
Without a macro?
Well, it's the same as you're used to, except that you can select the entire sheet and manually do them all at once.
(Select the 'button' at the top left, above row1 and to the left of column A) and do your manual thing.

or using a macro...
Code:
With Cells
  .RowHeight = 5
  .ColumnWidth = 5
End With

Hope it helps.
 
Upvote 0
Yes I would prefer to not do a macro. However when I select the entire worksheet and right click, the option to change the row height and column width is not available.
 
Upvote 0
Select the entire sheet (as above) and, with the whole sheet selected, move your mouse down to one of the row headers before right clicking.
Then move it to one of the column headers & right click to do the columns.

That help?

EDIT:
Guess I should point out I'm on xl 03 here. My 07 is at home but I assume it works the same way for this.
 
Upvote 0

Forum statistics

Threads
1,224,509
Messages
6,179,192
Members
452,893
Latest member
denay

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top