Private Sub Document_Open()
Dim cbTools As CommandBarPopup
Dim cbOfEx As CommandBarPopup
Dim cbOfMn As CommandBarButton
Set cbTools = Application.CommandBars(36).Controls(6)
cbTools.Reset
Set cbOfEx = cbTools.Controls.Add(Type:=msoControlPopup)
cbOfEx.Caption = "TheOfficeExperts Addins"
cbOfEx.BeginGroup = True
Set cbOfMn = cbOfEx.Controls.Add(Type:=msoControlButton)
cbOfMn.Caption = "Make My Calendar!"
cbOfMn.OnAction = "MakeCalendar"
cbOfMn.FaceId = "125"
End Sub
I get a type mismatch on this line:
Set cbTools = Application.CommandBars(36).Controls(6)
Happy to send file. Just email me. Anne@TheOfficeExperts.com
Please help!

Anne Troy
Word and Excel Macros
Coming soon: WordX Addin!
Dim cbTools As CommandBarPopup
Dim cbOfEx As CommandBarPopup
Dim cbOfMn As CommandBarButton
Set cbTools = Application.CommandBars(36).Controls(6)
cbTools.Reset
Set cbOfEx = cbTools.Controls.Add(Type:=msoControlPopup)
cbOfEx.Caption = "TheOfficeExperts Addins"
cbOfEx.BeginGroup = True
Set cbOfMn = cbOfEx.Controls.Add(Type:=msoControlButton)
cbOfMn.Caption = "Make My Calendar!"
cbOfMn.OnAction = "MakeCalendar"
cbOfMn.FaceId = "125"
End Sub
I get a type mismatch on this line:
Set cbTools = Application.CommandBars(36).Controls(6)
Happy to send file. Just email me. Anne@TheOfficeExperts.com
Please help!
Anne Troy
Word and Excel Macros
Coming soon: WordX Addin!