2016-04-27 5 views

答えて

1

次のコードでは、InspectorsオブジェクトのInspectorsプロパティとCountプロパティとItemメソッドを使用して、すべてのインスペクタウィンドウのキャプションを表示します。

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 

Getting Started with VBA in Outlook 2010の記事が参考になる場合があります。

+0

解決済み。どうもありがとう。 – Markowitz

関連する問題