OVH Cloud OVH Cloud

msoControlPopup et icone

1 réponse
Avatar
Charlie
bonjour,

j'ai construit un menu comme ceci

With CommandBars("xx")
Set b =3D .Controls.Add(Type:=3DmsoControlPopup,=20
before:=3D1)
End With
With b
.BeginGroup =3D True
.Caption =3D "xx"
'.Style =3D MsoIconAndCaption ' * Here is the *
'.Icon =3D xx ' * question *
End With

Set c =3D b.Controls.Add(Type:=3DmsoControlButton)
With c
.Caption =3D "xx"
.OnAction =3D "xx"
.Style =3D msoButtonIconAndCaption
.FaceId =3D xx
End With

Ca marche sauf que je voudrais ajouter une icone au=20
msoControlPopup, mais je ne connais pas la fa=E7on de faire.
Pour le msoControlButton c'est bon mais la syntaxe=20
utilis=E9e ne fonctionne pas avec le popup.
Quelqu'un connait-il la r=E9ponse ?

merci

1 réponse

Avatar
isabelle
bonjour Charlie,

il y a un exemple ici,

http://groups.google.com/groups?q=msoControlPopup+group:microsoft.public.fr.excel&hl=fr&lr=&ie=UTF-8&scoring=d&selm=uH%23sqBWIEHA.3444%40TK2MSFTNGP11.phx.gbl&rnum=2

isabelle


bonjour,

j'ai construit un menu comme ceci

With CommandBars("xx")
Set b = .Controls.Add(Type:=msoControlPopup,
before:=1)
End With
With b
.BeginGroup = True
.Caption = "xx"
'.Style = MsoIconAndCaption ' * Here is the *
'.Icon = xx ' * question *
End With

Set c = b.Controls.Add(Type:=msoControlButton)
With c
.Caption = "xx"
.OnAction = "xx"
.Style = msoButtonIconAndCaption
.FaceId = xx
End With

Ca marche sauf que je voudrais ajouter une icone au
msoControlPopup, mais je ne connais pas la façon de faire.
Pour le msoControlButton c'est bon mais la syntaxe
utilisée ne fonctionne pas avec le popup.
Quelqu'un connait-il la réponse ?

merci