MailMergeFilterCriterion.Index プロパティ (Publisher)

Returns a Long that represents the position of a particular item in a specified collection.

構文

インデックス

MailMergeFilterCriterion オブジェクトを表す変数。

次の使用例は、 MailMergeDataFields コレクションを調べ、各フィールドの Index プロパティと Name プロパティを表示します。

Dim mmfLoop As MailMergeDataField 
 
With ActiveDocument.MailMerge.DataSource 
 If .DataFields.Count > 0 Then 
 For Each mmfLoop In .DataFields 
 Debug.Print "Field " & mmfLoop.Name _ 
 & " / Index " & mmfLoop.Index 
 Next mmfLoop 
 Else 
 Debug.Print "No fields to report." 
 End If 
End With

次の使用例は、 Plates コレクションを調べ、各版の Index プロパティと Name プロパティを表示します。

Dim plaLoop As Plate 
 
If ActiveDocument.Plates.Count > 0 Then 
 For Each plaLoop In ActiveDocument.Plates 
 Debug.Print "Plate " & plaLoop.Name _ 
 & " / Index " & plaLoop.Index 
 Next plaLoop 
Else 
 Debug.Print "No plates to report." 
End If

サポートとフィードバック

Office VBA またはこの説明書に関するご質問やフィードバックがありますか? サポートの受け方およびフィードバックをお寄せいただく方法のガイダンスについては、Office VBA のサポートおよびフィードバックを参照してください。