CommandCollection.Count

Description

Returns a Long representing the total number of Command objects in the collection.

Examples

VBScript Example

set oCommands = Application.Commands
logmessage "There are " & oCommands.Count & " command(s) in the collection"

See Also

Command Application