In This Topic
Changes the width of the columns or the height of the rows in the range to achieve the best fit.
Syntax
'Declaration
Sub AutoFit( _
Optional ByVal As Boolean, _
Optional ByVal As Boolean _
)
'Usage
Dim instance As IRange
Dim includeCustomSize As Boolean
Dim includeHidden As Boolean
instance.AutoFit(includeCustomSize, includeHidden)
void AutoFit(
bool ,
bool
)
Parameters
- includeCustomSize
true
to include rows (or columns) that contain custom size, false
otherwise- includeHidden
true
to include rows (or columns) that is hidden, false
otherwise
See Also