本例子显示当前 WPS 中工具栏和菜单栏的总数。

MsgBox CommandBars.Count