Hello.
I creating one toolbar and creating on it one button by next macros (below).
I wish to add to my new button the list of some values (e.g. the list of bookmarks). If I will use the type of button as "msoControlPopup" then it will possible but such button don't will has picture. However if I will use the type of button as "msoControlButton", then how can I add to this button of list?
Thank you very much.
My codes:
Create new toolbar
[VBA]Sub setCB()
Set cB = CommandBars.Add( _
Name:="My bar", _
Position:=msoBarLeft, _
menubar:=False, _
temporary:=False)
CommandBars("My bar").Enabled = True
CommandBars("My barl").Visible = True
Set cB = Nothing
End Sub[/VBA]
Create new button on my toolbar
[VBA]Sub addCBB()
Set cbb = cB.Controls.Add(msoControlButton)
With cbb
.TooltipText = "My list of values"
.Tag = "rfButton"
.FaceId = 371
End With
Set cbb = Nothing
End Sub[/VBA]