Partager via


HTMLProject.RefreshDocument Method

Refreshes the specified HTML project in the Microsoft Office host application.

Namespace:  Microsoft.Office.Core
Assembly:  office (in office.dll)

Syntax

'Declaration
Sub RefreshDocument ( _
    Refresh As Boolean _
)
'Usage
Dim instance As HTMLProject
Dim Refresh As Boolean

instance.RefreshDocument(Refresh)
void RefreshDocument(
    bool Refresh
)

Parameters

  • Refresh
    Type: System.Boolean

    Optional Boolean. True if all changes are to be saved; False if all changes are to be ignored.

Remarks

Using this method is equivalent to clicking the Refresh button on the Refresh toolbar in the Office host application. If you refresh the document by setting the RefreshDocument method to True, all changes to the HTML source made in the Microsoft Script Editor are saved in the Office host application. If you set RefreshDocument to False, all changes to the HTML source are ignored.

Note that the value returned by the State property is affected by the RefreshDocument method. If you call RefreshDocument(True), the State property returns msoHTMLProjectStateDocumentProjectUnlocked if it is called after the refresh operation.

See Also

Reference

HTMLProject Interface

HTMLProject Members

Microsoft.Office.Core Namespace