the row height should be excatly the height of the data

  • Thread starter Thread starter jaggu
  • Start date Start date
J

jaggu

I an excel sheet I want all the rows to fit the data without using the mouse
or the row height audjustment
 
Hi,

Right click your sheet tab, view code and past this in

Private Sub Worksheet_Change(ByVal Target As Range)
Target.EntireRow.AutoFit
End Sub

Mike
 
CTRL + a(twice in 2003) to select all cells.

Alt + o + r + a to autofit all rows.


Gord Dibben MS Excel MVP
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top