SkipOnQuery Property
Returns a Boolean that specifies how to handle files that contain regions that have not been specified using the SetBodyMapping or SetHeadMapping methods and do not have an equivalently named region in the new template. In this circumstance, Microsoft FrontPage normally displays a dialog box asking for user input. True skips the file. False terminates the process and returns an error. The default value is False.
expression.SkipOnQuery
expression Required. An expression that returns a DynamicTemplateState object.
Example
The following example updates or attaches the specified Dynamic Web Template to all files in the active Web site and creates a log.
Dim objTemplate As DynamicTemplateState
Dim objFile As WebFile
Dim strLog As String
Dim strLogFile As String
Set objTemplate = Application.CreateDynamicTemplateState
objTemplate.SetBodyMapping "", "template.dwt", "(body)", "A1"
objTemplate.SetHeadMapping "", "template.dwt", "", "metadata"
objTemplate.SkipOnQuery = True
For Each objFile In ActiveWeb.AllFiles
If objFile.Extension = "htm" Then
If objFile.DynamicTemplate <> "" Then _
objFile.UpdateDynamicTemplate objTemplate, strLog
strLogFile = strLogFile & strLog & vbCrLf
strLog = ""
End If
Next