cellPadding Property

Microsoft FrontPage Visual Basic

cellPadding Property

Returns or sets a String that represents the amount of space between the border of the cell and the contents of the cell.

expression.cellPadding

expression    Required. An expression that returns one of the objects in the Applies To list.

Remarks

The String for the cellPadding property can be one of the following values:

padding Integer that specifies, in pixels, the amount of space between the border and the content.
percentage Integer, followed by a %. The value is a percentage of the available amount of space between the border and the content.

Example

The following example sets the padding and spacing for the specified table.

    Sub ChangeTableSpacing(ByRef objTable As FPHTMLTable, _
        ByRef strPadding As String, ByRef strSpacing As String)

    With objTable
        .cellPadding = strPadding
        .cellSpacing = strSpacing
    End With
End Sub
  

Use the following example to call the preceding subroutine. This example assumes that there is at least one table in the active document.

    Sub CallChangeTableSpacing()

    Call ChangeTableSpacing(objTable:=ActiveDocument.all _
        .tags("table").Item(0), strPadding:="5", strSpacing:="10")

End Sub