Height Property [Publisher 2003 VBA Language Reference]
Height property as it applies to the ReaderSpread and PrintableRect objects.
Returns a Single that represents the height, in points, of the page (for the ReaderSpread object) or the printable rectangle (for the PrintablePect object). Read-only.
expression.Height
expression Required. An expression that returns one of the above objects.
Height property as it applies to the Label object.
Returns a Variant that represents the height (in points) of the label. Read-only.
expression.Height
expression Required. An expression that returns one of the above objects.
Height property as it applies to the Window object.
Returns or sets a Long that represents the height (in points) of the window. Read/write.
expression.Height
expression Required. An expression that returns one of the above objects.
Height property as it applies to the Cell, CellRange, and Page objects.
Returns a Long that represent the height (in points) of a cell, range of cells, or page. Read-only.
expression.Height
expression Required. An expression that returns one of the above objects.
Height property as it applies to the Row and Shape objects.
Returns or sets a Variant that represents the height (in points) of a specified table row or shape. Read/write.
expression.Height
expression Required. An expression that returns one of the above objects.
Height property as it applies to the ShapeRange object.
Returns a Variant that represents the height (in points) of a specified range of shapes. Read-only.
expression.Height
expression Required. An expression that returns one of the above objects.
Height property as it applies to the PictureFormat object.
Returns a Variant that represents the height, in points, of the specified picture or OLE object. Read-only.
expression.Height
expression Required. An expression that returns a PictureFormat object.
Remarks
The valid range for the Height property depends on the size of the application workspace and the position of the object within the workspace. For centered objects on non-banner page sizes, the Height property may be 0.0 to 50.0 inches. For centered objects on banner page sizes, the Height property may be 0.0 to 241.0 inches.
Example
As it applies to the Window object.
This example sets the height and width of the active window if the window is neither maximized nor minimized.
Sub SetWindowHeight()
With ActiveWindow
If .WindowState <> pbWindowStateNormal Then
.WindowState = pbWindowStateNormal
.Height = InchesToPoints(5)
.Width = InchesToPoints(5)
End If
End With
End Sub
As it applies to the Row object.
This example creates a new table and sets the height and width of the second row and column, respectively.
Sub SetRowHeightColumnWidth()
With ActiveDocument.Pages(1).Shapes.AddTable(NumRows:=3, _
NumColumns:=3, Left:=80, Top:=80, Width:=400, Height:=12).Table
.Rows(2).Height = 72
.Columns(2).Width = 72
End With
End Sub
Applies to | Cell Object | CellRange Collection | Label Object | Page Object | PictureFormat Object | PrintableRect Object | ReaderSpread Object | Row Object | Shape Object | ShapeRange Collection | Window Object