LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
Zic Zic is offline
external usenet poster
 
Posts: 2
Default msoControlButtonDropDown

Hi all
Could somebody explain why with this code below i keep getting a #5 error
message?
Sub Affiche_Barre()
Dim Barre As CommandBar, boutDrpDwn As CommandBarControl, bout1 As
CommandBarButton, bout2 As CommandBarButton
Set Barre = Application.CommandBars.Add(MaCommandeBar, msoBarTop, ,
True)
Set boutDrpDwn = Barre.Controls.Add(msoControlButtonDropdown)
With boutDrpDwn
.FaceId = 135
End With
Set bout1 = boutDrpDwn.Controls.Add(msoControlButton)
With bout1
.FaceId = 71
.Style = msoButtonIcon
.OnAction = "MacroBout1"
End With
Set bout2 = boutDrpDwn.Controls.Add(msoControlButton)
With bout2
.FaceId = 72
.Style = msoButtonIcon
.OnAction = "MacroBout2"
End With
End Sub

TIA
Zic


 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

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



All times are GMT +1. The time now is 01:58 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"