Excel) (DefaultWebOptions.SaveNewWebPagesAsWebArchives 属性

如果新网页可以保存为 Web 存档,则为 True。 读/写 Boolean。

语法

表达式。SaveNewWebPagesAsWebArchives

表达式 表示 DefaultWebOptions 对象的变量。

示例

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

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

支持和反馈

有关于 Office VBA 或本文档的疑问或反馈? 请参阅 Office VBA 支持和反馈,获取有关如何接收支持和提供反馈的指南。