Selection.Count

説明

Selection内のオブジェクトの数をLongとして戻します。

VBScript の例

' This example displays the number of objects in the Selection
SelectAll
set oSelection = Application.Selection
logmessage "Number of objects in the Selection : " & oSelection.Count