Sub test()
Dim Cbar As CommandBar
Dim BCOUNT As Long
BCOUNT = 0
For Each Cbar In Application.CommandBars
If Cbar.BuiltIn = True Then
BCOUNT = BCOUNT + 1
End If
Next
MsgBox BCOUNT
End Sub
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.