HTMLProject.RefreshDocument(Boolean) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.