M
MikeB77
Hello
I can toggle the displayed faceID on a custom commandbar with the following
code:
With Application.CommandBars.FindControl(Tag:="Show my folder")
If .FaceId = 1088 Then
.FaceId = 1087
Else
.FaceId = 1088
End If
MsgBox .FaceId, , .Caption
End With
But withmy custom menu the new icon is not displayed, even tho the msgbox
shows that the faceID has been changed. I've tried a new custom menu and a
popup menu on the tools menu with the same result. I've tried Word 2002 and
2007 where it shows under the Add-ins.
I added my menu it like this:
Set myMenu = Application.CommandBars("Menu
Bar").Controls("Tools").Controls.Add(Type:=msoControlPopup)
with myMenu .... ' to add caption, tag etc..
I've tried setting commandbar("Tools").Protection = 0
Help please! What am I missing here?
Word 2002 and 2007
I can toggle the displayed faceID on a custom commandbar with the following
code:
With Application.CommandBars.FindControl(Tag:="Show my folder")
If .FaceId = 1088 Then
.FaceId = 1087
Else
.FaceId = 1088
End If
MsgBox .FaceId, , .Caption
End With
But withmy custom menu the new icon is not displayed, even tho the msgbox
shows that the faceID has been changed. I've tried a new custom menu and a
popup menu on the tools menu with the same result. I've tried Word 2002 and
2007 where it shows under the Add-ins.
I added my menu it like this:
Set myMenu = Application.CommandBars("Menu
Bar").Controls("Tools").Controls.Add(Type:=msoControlPopup)
with myMenu .... ' to add caption, tag etc..
I've tried setting commandbar("Tools").Protection = 0
Help please! What am I missing here?
Word 2002 and 2007