Height Property

       

Height property as it applies to the ReaderSpread object.

Returns a Single that represents the height of the page (in points). 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.

Remarks

The valid range for the Height property depends on the size of the Microsoft Publisher 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". For centered objects on banner page sizes, the Height property may be 0.0" to 241.0".

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.

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