updateDynamicTemplate Method

Microsoft FrontPage Visual Basic

updateDynamicTemplate Method

Updates the pages that are attached to a Dynamic Web Template so that any changes to the Dynamic Web Template are applied to pages that reference the Dynamic Web Template.

expression.updateDynamicTemplate(state)

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

state    Required DynamicTemplateState. Specifies the region mapping to use when updating the Dynamic Web Template. Use the SetHeadMapping and SetBodyMapping methods of the DynamicTemplateState object to customize region mapping.

Remarks

If an error occurs, the update process will terminate unless the SkipOnQuery property is set to True.

Example

The following example updates the Dynamic Web Template references in the active document.

    Dim objState As DynamicTemplateState

Set objState = Application.CreateDynamicTemplateState

If ActiveDocument.DynamicTemplate <> "" Then _
    ActiveDocument.UpdateDynamicTemplate objState

End Sub