DynamicTemplate Property
Returns a String that represents returns the path and file name of a Dynamic Web Template. An empty String indicates that no Dynamic Web Template is attached.
expression.DynamicTemplate
*expression * Required. An expression that returns a WebFile object.
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 for each file in the active Web site if a Dynamic Web Template is attached.
Dim objState As DynamicTemplateState
Dim objFile As WebFile
Dim strLog As String
Set objState = Application.CreateDynamicTemplateState
For Each objFile In ActiveWeb.AllFiles
If objFile.DynamicTemplate <> "" Then _
objFile.UpdateDynamicTemplate objState, strLog
Next
Applies to | WebFile Object