SaveNewWebPagesAsWebArchives 属性

       

如果新的 Web 页能够保存为 Web 档案,则该值为 TrueBoolean 类型,可读写。

expression.SaveNewWebPagesAsWebArchives

expression   必需。该表达式返回“应用于”列表中的对象之一。

示例

在本示例中,Microsoft Excel 确定将新 Web 页存为 Web 档案的设置,并通知用户。

Sub DetermineSettings()

    ' Determine settings and notify user.
    If Application.DefaultWebOptions.SaveNewWebPagesAsWebArchives = True Then
        MsgBox "New Web pages will be saved as Web archives."
    Else
        MsgBox "New Web pages will not be saved as Web archives."
    End If

End Sub