PC Review


Reply
Thread Tools Rate Thread

Custom CommandBar

 
 
New Member
Join Date: Jan 2008
Posts: 1
 
      15th Jan 2008
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_(msoControlButton, , , , False)
With button1
.Caption = "Click here"
.BeginGroup = True
.TooltipText = "Tool tip text"
.FaceId = 126
End With
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Custom Commandbar issue Dale Fye Microsoft Access Form Coding 2 3rd May 2008 01:54 PM
Custom CommandBar gone Toxalot Microsoft Access 0 15th Feb 2008 06:34 AM
Custom commandbar via VBA Dale Fye Microsoft Access VBA Modules 1 20th Dec 2007 12:31 PM
Commandbar custom control =?Utf-8?B?bWlzaHU=?= Microsoft Access VBA Modules 0 14th Aug 2005 01:42 PM
Custom Commandbar Stefano Condotta Microsoft Excel Programming 2 3rd Mar 2005 07:00 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 09:53 AM.