Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations cowski on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

AutoFit 1

Status
Not open for further replies.

FrenchCAD

Mechanical
Feb 8, 2002
321
Here is a cool macro if you're tired of resizing height and length of your cells. It is based on the AutoFit function :

Sub resize()
Range("A1").Select
Do While ActiveCell.Value <> &quot;&quot;
Selection.EntireRow.AutoFit
Selection.EntireColumn.AutoFit
ActiveCell.Offset(1, 0).Range(&quot;A1&quot;).Select
Loop
End Sub

Enjoy!

Cyril Guichard
Mechanical Engineer
 
Replies continue below

Recommended for you

does this really do more than selecting the whole worksheet and then Format | Row | Autofit and Format | Column | Autofit ?



Cheers,
Joerd

Please see FAQ731-376 for tips on how to make the best use of Eng-Tips.
 
No, it does the exact same thing. It's just more practical to me since I hate clicking throug all the menus :p

Cyril Guichard
Mechanical Engineer
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor