HTMLProject.RefreshDocument(Boolean) Method

Definition

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

public void RefreshDocument (bool Refresh = false);
abstract member RefreshDocument : bool -> unit
Public Sub RefreshDocument (Optional Refresh As Boolean = false)

Parameters

Refresh
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.

Applies to