Auto expand row

Foxy Lady

New Member
Joined
Feb 25, 2009
Messages
41
Hi there,

I need to auto expand a row - I added the wrap text option but the row doesn't expand to adjust when the sentence becomes to long for the column.

Thanx in advance
 

Excel Facts

Get help while writing formula
Click the italics "fx" icon to the left of the formula bar to open the Functions Arguments dialog. Help is displayed for each argument.
Is this just on a spreadsheet, or are you wanting to code this into a macro?

in the spreadsheet, check that the row height is set to fit. (Format/row/height)


To see how itis done in a macro, record a macro while you do this.
 
Upvote 0
For the spreadsheet click on the top of the column you want to auto fit.
On the Home Tab select Format in the Cells block - Auto Fit Column width.
(xl 2007)

For a macro you need to add this for the appropriate column
Code:
Range("A:A").Select 
Selection.Columns.AutoFit
 
Upvote 0

Forum statistics

Threads
1,216,309
Messages
6,130,005
Members
449,552
Latest member
8073662045

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