parseCodeChanges Method

Microsoft FrontPage Visual Basic

parseCodeChanges Method

Updates the page when it is displayed in Code view.

expression.parseCodeChanges

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

Remarks

In previous versions of Microsoft FrontPage, it was impossible to run Microsoft Visual Basic for Applications (VBA) code that modified the HTML in a page — for example, adding elements or changing attributes — while viewing the HTML in FrontPage. Doing so displayed a "Permission Denied" error.

With Microsoft Office FrontPage 2003, you can now make changes to the HTML in a page by using VBA code while a page is displayed in the FrontPage Code view. However, the FrontPage Page Object model becomes unavailable when edits are made in Code view. The parseCodeChanges method allows you to reparse the page without having to change the view and eliminates the "Permission Denied" error.

Example

The following example refreshes the active document.

    ActiveDocument.parseCodeChanges