By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,964 Members | 1,290 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,964 IT Pros & Developers. It's quick & easy.

Custom CommandBar

P: 8
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.FindControl(, , "tag1", True) Is Nothing Then

Set CommandBarPopup1= myCommandBar.Controls.Add_(msoControlPopup, , , 5, Temporary:=True)
With CommandBarPopup1
.BeginGroup = True
.Caption = "Caption text"
.Tag = "tag1"
End With

Set button1=CommandBarPopup.Controls.Add_(msoControlBu tton, , , , False)
With button1
.Caption = "Click here"
.BeginGroup = True
.TooltipText = "Tool tip text"
.FaceId = 126
End With
Jan 15 '08 #1
Share this Question
Share on Google+
2 Replies


daniel aristidou
100+
P: 491
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 .....
Jan 31 '08 #2

Expert 5K+
P: 8,434
Just curious - does the button work, apart from the tooltip text problem?
Feb 1 '08 #3

Post your reply

Sign in to post your reply or Sign up for a free account.