Custom CommandBar

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • bobjones122
    New Member
    • Dec 2007
    • 8

    Custom CommandBar

    I'm building a custom right click using VBA for Word. I am not able to make the TooltipText appear. Is there anything I am missing in the code below?:

    Set myCommandBar= CommandBars.Add ("name1",_ msoBarPopup, False, True)

    If myCommandBar.Fi ndControl(, , "tag1", True) Is Nothing Then

    Set CommandBarPopup 1= myCommandBar.Co ntrols.Add_(mso ControlPopup, , , 5, Temporary:=True )
    With CommandBarPopup 1
    .BeginGroup = True
    .Caption = "Caption text"
    .Tag = "tag1"
    End With

    Set button1=Command BarPopup.Contro ls.Add_(msoCont rolBu tton, , , , False)
    With button1
    .Caption = "Click here"
    .BeginGroup = True
    .TooltipText = "Tool tip text"
    .FaceId = 126
    End With
  • daniel aristidou
    Contributor
    • Aug 2007
    • 494

    #2
    Originally posted by bobjones122
    I'm building a custom right click using VBA for Word. I am not able to make the TooltipText appear.
    im not sure about VBA but you could try adding a mousehover event .....

    Comment

    • Killer42
      Recognized Expert Expert
      • Oct 2006
      • 8429

      #3
      Just curious - does the button work, apart from the tooltip text problem?

      Comment

      Working...