DocumentHTML Property

Microsoft FrontPage Visual Basic

DocumentHTML Property

Sets or returns a String that represents the HTML tags and content of the specified Document object.

expression.DocumentHTML

expression    Required. An expression that returns an FPHTMLDocument object.

Example

The following example uses the Microsoft Visual Basic Replace function to place a blue border around all paragraphs in the active document.

    Sub ReplaceHTMLText()
    ActiveDocument.DocumentHTML = Replace _
        (ActiveDocument.DocumentHTML, "<p>", _
        "<p style=""border: thick dashed blue"">")
End Sub