DefaultWebOptions 属性

       

返回 DefaultWebOptions 对象,该对象包含应用程序级的全局属性,当以 Web 页保存文档或打开 Web 页时,Microsoft Excel 会使用这些属性。只读。

示例

本示例检查文档编码方式的默认设置是否为 Western,然后设置相应的字符串 strDocEncoding 的值。

If Application.DefaultWebOptions.Encoding = msoEncodingWestern Then
    strDocEncoding = "Western"
Else
    strDocEncoding = "Other"
End If