返回 Boolean 类型的值,该值表明当前文档是否位于 MSE 模式。MSE 模式相当于 Microsoft 脚本编辑器。如果为 True,则文档位于 MSE 模式。如果为 False,则当前文档不在 MSE 模式。只读。
expression.mseMode
expression 必选。返回 DispFPHTMLDocument 对象的表达式。
下列示例向用户显示消息,表明文档是否位于 MSE 模式。
Sub DisplayMsemode()
'Displays the MSE mode of the current document
Dim objApp As FrontPage.Application
Dim objDoc As DispFPHTMLDocument
Set objApp = FrontPage.Application
Set objDoc = objApp.ActiveDocument
'Display msemode
If objDoc.mseMode = False Then
MsgBox "The current document is not in MSE mode."
Else
MsgBox "The current document is in MSE mode."
End If
End Sub