Outlook) (Application.Inspectors 属性
返回包含 检查器 对象,该对象代表所有打开的检查器 检查 集合对象。 此为只读属性。
语法
expression。 Inspectors
expression:表示 Application 对象的变量。
示例
此 Microsoft Visual Basic 示例使用 Count 属性并 检查 对象的 Item 方法 检查 属性显示所有的检查器窗口的标题。
Private Sub CommandButton1_Click()
Dim myInspectors As Outlook.Inspectors
Dim x as Integer
Dim iCount As Integer
Set myInspectors = Application.Inspectors
iCount = Application.Inspectors.Count
If iCount > 0 Then
For x = 1 To iCount
MsgBox myInspectors.Item(x).Caption
Next x
Else
MsgBox "No inspector windows are open."
End If
End Sub
另请参阅
支持和反馈
有关于 Office VBA 或本文档的疑问或反馈? 请参阅 Office VBA 支持和反馈,获取有关如何接收支持和提供反馈的指南。
反馈
https://aka.ms/ContentUserFeedback。
即将发布:在整个 2024 年,我们将逐步淘汰作为内容反馈机制的“GitHub 问题”,并将其取代为新的反馈系统。 有关详细信息,请参阅:提交和查看相关反馈