How to apply the action to several Outlook items selected?
问题 The code here works for one item only. How to modify that to run DisplayItemMetadata (see the code) for each item selected? Upd. tried to do the following: For Each individualItem In Application.ActiveExplorer.Selection With objButton .BeginGroup = True .Caption = "My &item" .FaceId = 1000 .Tag = "DisplayItemMetadata" If Not IsNull(Selection.Item(1)) Then On Error GoTo 0 ' Just in case the item selected ' doesn't have a valid EntryID. ' .Parameter = Selection.Item(1).EntryID .Parameter =