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 <> ""
Selection.EntireRow.AutoFit
Selection.EntireColumn.AutoFit
ActiveCell.Offset(1, 0).Range("A1"
.Select
Loop
End Sub
Enjoy!
Cyril Guichard
Mechanical Engineer
Sub resize()
Range("A1"
Do While ActiveCell.Value <> ""
Selection.EntireRow.AutoFit
Selection.EntireColumn.AutoFit
ActiveCell.Offset(1, 0).Range("A1"
Loop
End Sub
Enjoy!
Cyril Guichard
Mechanical Engineer