Monday March 28
Thank you for this bit.
I recently moved this spreadsheet from Quattro Pro to Excel and yet to have setup the row height and column width "macros."
I will need to clarify how the height/width is determined in Excel and how the units translate from the spreadsheet to the VBA
units.
In Quattro Pro I had the column width units in a row at the bottom of the sheet and the row heights in a column at the right. The
macro starts in the first width column reads the value and uses it to set the width, and then moves to the right. And then it does
the same for the heights.
And so on.
Thank you for the script below it will be helpful.
And then when XL changes such the macro will set it "straight."
J
I'm not sure that there's a global way to do this.
But if you change the rowheight manually, excel won't automatically adjust it.
Maybe you could run a little macro that "adjusts" the rowheight--but not a
noticeable amount:
Option Explicit
Sub testme()
Dim wks As Worksheet
Dim myRow As Range
Dim myHeight As Double
For Each wks In ActiveWorkbook.Worksheets
With wks
For Each myRow In .UsedRange.Rows
With myRow
.RowHeight = .RowHeight + 0.01
End With
Next myRow
End With
Next wks
End Sub
If you're new to macros, you may want to read David McRitchie's intro at:
http://www.mvps.org/dmcritchie/excel/getstarted.htm