Count Property

This content is no longer actively maintained. It is provided as is, for anyone who may still be using these technologies, with no warranties or claims of accuracy with regard to the most recent product version or service release.

                          

Returns the number of items in the specified collection. Read-only Long.

Remarks

For the CommandBars collection, the count includes only menu bars, toolbars, and shortcut menus.

For the Scripts collection, the count returned is the number of script blocks in the specified document. In Word, Scripts.Count returns the total number of inline and floating script anchors combined.