J'ai créer mon Menu, mais les icones ne s'affichent pas ?
Est-ce possible de mettre le texte en Gras ?
De plus, je voudrais savoir où je dois placer la macro de l'emplacement.
-----
With Application.CommandBars("toto")
.Position = msoBarTop
.Visible = True
End With
End Sub
------
Merci Yann
Dim barre As CommandBar
Dim bouton As CommandBarControl
Set barre = CommandBars.Add(Name:="BarreMacro")
barre.Visible = True
Set bouton > CommandBars("BarreMacro").Controls.Add(Type:=msoControlButton)
bouton.Style = msoButtonCaption
bouton.OnAction = "Connexion"
bouton.Caption = "CONNEXION"
Set bouton > CommandBars("BarreMacro").Controls.Add(Type:=msoControlButton)
bouton.Style = msoButtonCaption
bouton.FaceId = 3
bouton.OnAction = "MacroVerou"
bouton.Caption = "Vérouiller la feuille du mois"
Set bouton > CommandBars("BarreMacro").Controls.Add(Type:=msoControlButton)
bouton.Style = msoButtonCaption
bouton.FaceId = 1087
bouton.OnAction = "DeverouilleAdm"
bouton.Caption = "Dévérouiller la feuille du mois"
Set bouton > CommandBars("BarreMacro").Controls.Add(Type:=msoControlButton)
bouton.Style = msoButtonCaption
bouton.FaceId = 264
bouton.OnAction = "ValidCP"
bouton.Caption = "Vérouiller la feuille CP"
Set bouton > CommandBars("BarreMacro").Controls.Add(Type:=msoControlButton)
bouton.Style = msoButtonCaption
bouton.FaceId = 1016
bouton.OnAction = "DeverouilleCP"
bouton.Caption = "Dévérouiller la feuille CP"
Set bouton > CommandBars("BarreMacro").Controls.Add(Type:=msoControlButton)
bouton.Style = msoButtonCaption
bouton.OnAction = "Connexion"
bouton.Caption = "CONNEXION"
End Sub
J'ai créer mon Menu, mais les icones ne s'affichent pas ?
Est-ce possible de mettre le texte en Gras ?
De plus, je voudrais savoir où je dois placer la macro de l'emplacement.
-----
With Application.CommandBars("toto")
.Position = msoBarTop
.Visible = True
End With
End Sub
------
Merci Yann
Dim barre As CommandBar
Dim bouton As CommandBarControl
Set barre = CommandBars.Add(Name:="BarreMacro")
barre.Visible = True
Set bouton > CommandBars("BarreMacro").Controls.Add(Type:=msoControlButton)
bouton.Style = msoButtonCaption
bouton.OnAction = "Connexion"
bouton.Caption = "CONNEXION"
Set bouton > CommandBars("BarreMacro").Controls.Add(Type:=msoControlButton)
bouton.Style = msoButtonCaption
bouton.FaceId = 3
bouton.OnAction = "MacroVerou"
bouton.Caption = "Vérouiller la feuille du mois"
Set bouton > CommandBars("BarreMacro").Controls.Add(Type:=msoControlButton)
bouton.Style = msoButtonCaption
bouton.FaceId = 1087
bouton.OnAction = "DeverouilleAdm"
bouton.Caption = "Dévérouiller la feuille du mois"
Set bouton > CommandBars("BarreMacro").Controls.Add(Type:=msoControlButton)
bouton.Style = msoButtonCaption
bouton.FaceId = 264
bouton.OnAction = "ValidCP"
bouton.Caption = "Vérouiller la feuille CP"
Set bouton > CommandBars("BarreMacro").Controls.Add(Type:=msoControlButton)
bouton.Style = msoButtonCaption
bouton.FaceId = 1016
bouton.OnAction = "DeverouilleCP"
bouton.Caption = "Dévérouiller la feuille CP"
Set bouton > CommandBars("BarreMacro").Controls.Add(Type:=msoControlButton)
bouton.Style = msoButtonCaption
bouton.OnAction = "Connexion"
bouton.Caption = "CONNEXION"
End Sub
J'ai créer mon Menu, mais les icones ne s'affichent pas ?
Est-ce possible de mettre le texte en Gras ?
De plus, je voudrais savoir où je dois placer la macro de l'emplacement.
-----
With Application.CommandBars("toto")
.Position = msoBarTop
.Visible = True
End With
End Sub
------
Merci Yann
Dim barre As CommandBar
Dim bouton As CommandBarControl
Set barre = CommandBars.Add(Name:="BarreMacro")
barre.Visible = True
Set bouton > CommandBars("BarreMacro").Controls.Add(Type:=msoControlButton)
bouton.Style = msoButtonCaption
bouton.OnAction = "Connexion"
bouton.Caption = "CONNEXION"
Set bouton > CommandBars("BarreMacro").Controls.Add(Type:=msoControlButton)
bouton.Style = msoButtonCaption
bouton.FaceId = 3
bouton.OnAction = "MacroVerou"
bouton.Caption = "Vérouiller la feuille du mois"
Set bouton > CommandBars("BarreMacro").Controls.Add(Type:=msoControlButton)
bouton.Style = msoButtonCaption
bouton.FaceId = 1087
bouton.OnAction = "DeverouilleAdm"
bouton.Caption = "Dévérouiller la feuille du mois"
Set bouton > CommandBars("BarreMacro").Controls.Add(Type:=msoControlButton)
bouton.Style = msoButtonCaption
bouton.FaceId = 264
bouton.OnAction = "ValidCP"
bouton.Caption = "Vérouiller la feuille CP"
Set bouton > CommandBars("BarreMacro").Controls.Add(Type:=msoControlButton)
bouton.Style = msoButtonCaption
bouton.FaceId = 1016
bouton.OnAction = "DeverouilleCP"
bouton.Caption = "Dévérouiller la feuille CP"
Set bouton > CommandBars("BarreMacro").Controls.Add(Type:=msoControlButton)
bouton.Style = msoButtonCaption
bouton.OnAction = "Connexion"
bouton.Caption = "CONNEXION"
End Sub
J'ai créer mon Menu, mais les icones ne s'affichent pas ?
Est-ce possible de mettre le texte en Gras ?
De plus, je voudrais savoir où je dois placer la macro de l'emplacement.
-----
With Application.CommandBars("toto")
.Position = msoBarTop
.Visible = True
End With
End Sub
------
Merci Yann
Dim barre As CommandBar
Dim bouton As CommandBarControl
Set barre = CommandBars.Add(Name:="BarreMacro")
barre.Visible = True
Set bouton > CommandBars("BarreMacro").Controls.Add(Type:=msoControlButton)
bouton.Style = msoButtonCaption
bouton.OnAction = "Connexion"
bouton.Caption = "CONNEXION"
Set bouton > CommandBars("BarreMacro").Controls.Add(Type:=msoControlButton)
bouton.Style = msoButtonCaption
bouton.FaceId = 3
bouton.OnAction = "MacroVerou"
bouton.Caption = "Vérouiller la feuille du mois"
Set bouton > CommandBars("BarreMacro").Controls.Add(Type:=msoControlButton)
bouton.Style = msoButtonCaption
bouton.FaceId = 1087
bouton.OnAction = "DeverouilleAdm"
bouton.Caption = "Dévérouiller la feuille du mois"
Set bouton > CommandBars("BarreMacro").Controls.Add(Type:=msoControlButton)
bouton.Style = msoButtonCaption
bouton.FaceId = 264
bouton.OnAction = "ValidCP"
bouton.Caption = "Vérouiller la feuille CP"
Set bouton > CommandBars("BarreMacro").Controls.Add(Type:=msoControlButton)
bouton.Style = msoButtonCaption
bouton.FaceId = 1016
bouton.OnAction = "DeverouilleCP"
bouton.Caption = "Dévérouiller la feuille CP"
Set bouton > CommandBars("BarreMacro").Controls.Add(Type:=msoControlButton)
bouton.Style = msoButtonCaption
bouton.OnAction = "Connexion"
bouton.Caption = "CONNEXION"
End Sub
J'ai créer mon Menu, mais les icones ne s'affichent pas ?
Est-ce possible de mettre le texte en Gras ?
De plus, je voudrais savoir où je dois placer la macro de l'emplacement.
-----
With Application.CommandBars("toto")
.Position = msoBarTop
.Visible = True
End With
End Sub
------
Merci Yann
Dim barre As CommandBar
Dim bouton As CommandBarControl
Set barre = CommandBars.Add(Name:="BarreMacro")
barre.Visible = True
Set bouton > CommandBars("BarreMacro").Controls.Add(Type:=msoControlButton)
bouton.Style = msoButtonCaption
bouton.OnAction = "Connexion"
bouton.Caption = "CONNEXION"
Set bouton > CommandBars("BarreMacro").Controls.Add(Type:=msoControlButton)
bouton.Style = msoButtonCaption
bouton.FaceId = 3
bouton.OnAction = "MacroVerou"
bouton.Caption = "Vérouiller la feuille du mois"
Set bouton > CommandBars("BarreMacro").Controls.Add(Type:=msoControlButton)
bouton.Style = msoButtonCaption
bouton.FaceId = 1087
bouton.OnAction = "DeverouilleAdm"
bouton.Caption = "Dévérouiller la feuille du mois"
Set bouton > CommandBars("BarreMacro").Controls.Add(Type:=msoControlButton)
bouton.Style = msoButtonCaption
bouton.FaceId = 264
bouton.OnAction = "ValidCP"
bouton.Caption = "Vérouiller la feuille CP"
Set bouton > CommandBars("BarreMacro").Controls.Add(Type:=msoControlButton)
bouton.Style = msoButtonCaption
bouton.FaceId = 1016
bouton.OnAction = "DeverouilleCP"
bouton.Caption = "Dévérouiller la feuille CP"
Set bouton > CommandBars("BarreMacro").Controls.Add(Type:=msoControlButton)
bouton.Style = msoButtonCaption
bouton.OnAction = "Connexion"
bouton.Caption = "CONNEXION"
End Sub
J'ai créer mon Menu, mais les icones ne s'affichent pas ?
Est-ce possible de mettre le texte en Gras ?
De plus, je voudrais savoir où je dois placer la macro de l'emplacement.
-----
With Application.CommandBars("toto")
.Position = msoBarTop
.Visible = True
End With
End Sub
------
Merci Yann
Dim barre As CommandBar
Dim bouton As CommandBarControl
Set barre = CommandBars.Add(Name:="BarreMacro")
barre.Visible = True
Set bouton > CommandBars("BarreMacro").Controls.Add(Type:=msoControlButton)
bouton.Style = msoButtonCaption
bouton.OnAction = "Connexion"
bouton.Caption = "CONNEXION"
Set bouton > CommandBars("BarreMacro").Controls.Add(Type:=msoControlButton)
bouton.Style = msoButtonCaption
bouton.FaceId = 3
bouton.OnAction = "MacroVerou"
bouton.Caption = "Vérouiller la feuille du mois"
Set bouton > CommandBars("BarreMacro").Controls.Add(Type:=msoControlButton)
bouton.Style = msoButtonCaption
bouton.FaceId = 1087
bouton.OnAction = "DeverouilleAdm"
bouton.Caption = "Dévérouiller la feuille du mois"
Set bouton > CommandBars("BarreMacro").Controls.Add(Type:=msoControlButton)
bouton.Style = msoButtonCaption
bouton.FaceId = 264
bouton.OnAction = "ValidCP"
bouton.Caption = "Vérouiller la feuille CP"
Set bouton > CommandBars("BarreMacro").Controls.Add(Type:=msoControlButton)
bouton.Style = msoButtonCaption
bouton.FaceId = 1016
bouton.OnAction = "DeverouilleCP"
bouton.Caption = "Dévérouiller la feuille CP"
Set bouton > CommandBars("BarreMacro").Controls.Add(Type:=msoControlButton)
bouton.Style = msoButtonCaption
bouton.OnAction = "Connexion"
bouton.Caption = "CONNEXION"
End Sub
J'ai créer mon Menu, mais les icones ne s'affichent pas ?
Est-ce possible de mettre le texte en Gras ?
De plus, je voudrais savoir où je dois placer la macro de l'emplacement.
-----
With Application.CommandBars("toto")
.Position = msoBarTop
.Visible = True
End With
End Sub
------
Merci Yann
Dim barre As CommandBar
Dim bouton As CommandBarControl
Set barre = CommandBars.Add(Name:="BarreMacro")
barre.Visible = True
Set bouton > CommandBars("BarreMacro").Controls.Add(Type:=msoControlButton)
bouton.Style = msoButtonCaption
bouton.OnAction = "Connexion"
bouton.Caption = "CONNEXION"
Set bouton > CommandBars("BarreMacro").Controls.Add(Type:=msoControlButton)
bouton.Style = msoButtonCaption
bouton.FaceId = 3
bouton.OnAction = "MacroVerou"
bouton.Caption = "Vérouiller la feuille du mois"
Set bouton > CommandBars("BarreMacro").Controls.Add(Type:=msoControlButton)
bouton.Style = msoButtonCaption
bouton.FaceId = 1087
bouton.OnAction = "DeverouilleAdm"
bouton.Caption = "Dévérouiller la feuille du mois"
Set bouton > CommandBars("BarreMacro").Controls.Add(Type:=msoControlButton)
bouton.Style = msoButtonCaption
bouton.FaceId = 264
bouton.OnAction = "ValidCP"
bouton.Caption = "Vérouiller la feuille CP"
Set bouton > CommandBars("BarreMacro").Controls.Add(Type:=msoControlButton)
bouton.Style = msoButtonCaption
bouton.FaceId = 1016
bouton.OnAction = "DeverouilleCP"
bouton.Caption = "Dévérouiller la feuille CP"
Set bouton > CommandBars("BarreMacro").Controls.Add(Type:=msoControlButton)
bouton.Style = msoButtonCaption
bouton.OnAction = "Connexion"
bouton.Caption = "CONNEXION"
End Sub
J'ai créer mon Menu, mais les icones ne s'affichent pas ?
Est-ce possible de mettre le texte en Gras ?
De plus, je voudrais savoir où je dois placer la macro de l'emplacement.
-----
With Application.CommandBars("toto")
.Position = msoBarTop
.Visible = True
End With
End Sub
------
Merci Yann
Dim barre As CommandBar
Dim bouton As CommandBarControl
Set barre = CommandBars.Add(Name:="BarreMacro")
barre.Visible = True
Set bouton > CommandBars("BarreMacro").Controls.Add(Type:=msoControlButton)
bouton.Style = msoButtonCaption
bouton.OnAction = "Connexion"
bouton.Caption = "CONNEXION"
Set bouton > CommandBars("BarreMacro").Controls.Add(Type:=msoControlButton)
bouton.Style = msoButtonCaption
bouton.FaceId = 3
bouton.OnAction = "MacroVerou"
bouton.Caption = "Vérouiller la feuille du mois"
Set bouton > CommandBars("BarreMacro").Controls.Add(Type:=msoControlButton)
bouton.Style = msoButtonCaption
bouton.FaceId = 1087
bouton.OnAction = "DeverouilleAdm"
bouton.Caption = "Dévérouiller la feuille du mois"
Set bouton > CommandBars("BarreMacro").Controls.Add(Type:=msoControlButton)
bouton.Style = msoButtonCaption
bouton.FaceId = 264
bouton.OnAction = "ValidCP"
bouton.Caption = "Vérouiller la feuille CP"
Set bouton > CommandBars("BarreMacro").Controls.Add(Type:=msoControlButton)
bouton.Style = msoButtonCaption
bouton.FaceId = 1016
bouton.OnAction = "DeverouilleCP"
bouton.Caption = "Dévérouiller la feuille CP"
Set bouton > CommandBars("BarreMacro").Controls.Add(Type:=msoControlButton)
bouton.Style = msoButtonCaption
bouton.OnAction = "Connexion"
bouton.Caption = "CONNEXION"
End Sub
J'ai créer mon Menu, mais les icones ne s'affichent pas ?
Est-ce possible de mettre le texte en Gras ?
De plus, je voudrais savoir où je dois placer la macro de l'emplacement.
-----
With Application.CommandBars("toto")
.Position = msoBarTop
.Visible = True
End With
End Sub
------
Merci Yann
Dim barre As CommandBar
Dim bouton As CommandBarControl
Set barre = CommandBars.Add(Name:="BarreMacro")
barre.Visible = True
Set bouton > CommandBars("BarreMacro").Controls.Add(Type:=msoControlButton)
bouton.Style = msoButtonCaption
bouton.OnAction = "Connexion"
bouton.Caption = "CONNEXION"
Set bouton > CommandBars("BarreMacro").Controls.Add(Type:=msoControlButton)
bouton.Style = msoButtonCaption
bouton.FaceId = 3
bouton.OnAction = "MacroVerou"
bouton.Caption = "Vérouiller la feuille du mois"
Set bouton > CommandBars("BarreMacro").Controls.Add(Type:=msoControlButton)
bouton.Style = msoButtonCaption
bouton.FaceId = 1087
bouton.OnAction = "DeverouilleAdm"
bouton.Caption = "Dévérouiller la feuille du mois"
Set bouton > CommandBars("BarreMacro").Controls.Add(Type:=msoControlButton)
bouton.Style = msoButtonCaption
bouton.FaceId = 264
bouton.OnAction = "ValidCP"
bouton.Caption = "Vérouiller la feuille CP"
Set bouton > CommandBars("BarreMacro").Controls.Add(Type:=msoControlButton)
bouton.Style = msoButtonCaption
bouton.FaceId = 1016
bouton.OnAction = "DeverouilleCP"
bouton.Caption = "Dévérouiller la feuille CP"
Set bouton > CommandBars("BarreMacro").Controls.Add(Type:=msoControlButton)
bouton.Style = msoButtonCaption
bouton.OnAction = "Connexion"
bouton.Caption = "CONNEXION"
End Sub
J'ai créer mon Menu, mais les icones ne s'affichent pas ?
Est-ce possible de mettre le texte en Gras ?
De plus, je voudrais savoir où je dois placer la macro de l'emplacement.
-----
With Application.CommandBars("toto")
.Position = msoBarTop
.Visible = True
End With
End Sub
------
Merci Yann
Dim barre As CommandBar
Dim bouton As CommandBarControl
Set barre = CommandBars.Add(Name:="BarreMacro")
barre.Visible = True
Set bouton > CommandBars("BarreMacro").Controls.Add(Type:=msoControlButton)
bouton.Style = msoButtonCaption
bouton.OnAction = "Connexion"
bouton.Caption = "CONNEXION"
Set bouton > CommandBars("BarreMacro").Controls.Add(Type:=msoControlButton)
bouton.Style = msoButtonCaption
bouton.FaceId = 3
bouton.OnAction = "MacroVerou"
bouton.Caption = "Vérouiller la feuille du mois"
Set bouton > CommandBars("BarreMacro").Controls.Add(Type:=msoControlButton)
bouton.Style = msoButtonCaption
bouton.FaceId = 1087
bouton.OnAction = "DeverouilleAdm"
bouton.Caption = "Dévérouiller la feuille du mois"
Set bouton > CommandBars("BarreMacro").Controls.Add(Type:=msoControlButton)
bouton.Style = msoButtonCaption
bouton.FaceId = 264
bouton.OnAction = "ValidCP"
bouton.Caption = "Vérouiller la feuille CP"
Set bouton > CommandBars("BarreMacro").Controls.Add(Type:=msoControlButton)
bouton.Style = msoButtonCaption
bouton.FaceId = 1016
bouton.OnAction = "DeverouilleCP"
bouton.Caption = "Dévérouiller la feuille CP"
Set bouton > CommandBars("BarreMacro").Controls.Add(Type:=msoControlButton)
bouton.Style = msoButtonCaption
bouton.OnAction = "Connexion"
bouton.Caption = "CONNEXION"
End Sub
J'ai créer mon Menu, mais les icones ne s'affichent pas ?
Est-ce possible de mettre le texte en Gras ?
De plus, je voudrais savoir où je dois placer la macro de l'emplacement.
-----
With Application.CommandBars("toto")
.Position = msoBarTop
.Visible = True
End With
End Sub
------
Merci Yann
Dim barre As CommandBar
Dim bouton As CommandBarControl
Set barre = CommandBars.Add(Name:="BarreMacro")
barre.Visible = True
Set bouton > CommandBars("BarreMacro").Controls.Add(Type:=msoControlButton)
bouton.Style = msoButtonCaption
bouton.OnAction = "Connexion"
bouton.Caption = "CONNEXION"
Set bouton > CommandBars("BarreMacro").Controls.Add(Type:=msoControlButton)
bouton.Style = msoButtonCaption
bouton.FaceId = 3
bouton.OnAction = "MacroVerou"
bouton.Caption = "Vérouiller la feuille du mois"
Set bouton > CommandBars("BarreMacro").Controls.Add(Type:=msoControlButton)
bouton.Style = msoButtonCaption
bouton.FaceId = 1087
bouton.OnAction = "DeverouilleAdm"
bouton.Caption = "Dévérouiller la feuille du mois"
Set bouton > CommandBars("BarreMacro").Controls.Add(Type:=msoControlButton)
bouton.Style = msoButtonCaption
bouton.FaceId = 264
bouton.OnAction = "ValidCP"
bouton.Caption = "Vérouiller la feuille CP"
Set bouton > CommandBars("BarreMacro").Controls.Add(Type:=msoControlButton)
bouton.Style = msoButtonCaption
bouton.FaceId = 1016
bouton.OnAction = "DeverouilleCP"
bouton.Caption = "Dévérouiller la feuille CP"
Set bouton > CommandBars("BarreMacro").Controls.Add(Type:=msoControlButton)
bouton.Style = msoButtonCaption
bouton.OnAction = "Connexion"
bouton.Caption = "CONNEXION"
End Sub
J'ai créer mon Menu, mais les icones ne s'affichent pas ?
Est-ce possible de mettre le texte en Gras ?
De plus, je voudrais savoir où je dois placer la macro de l'emplacement.
-----
With Application.CommandBars("toto")
.Position = msoBarTop
.Visible = True
End With
End Sub
------
Merci Yann
Dim barre As CommandBar
Dim bouton As CommandBarControl
Set barre = CommandBars.Add(Name:="BarreMacro")
barre.Visible = True
Set bouton > CommandBars("BarreMacro").Controls.Add(Type:=msoControlButton)
bouton.Style = msoButtonCaption
bouton.OnAction = "Connexion"
bouton.Caption = "CONNEXION"
Set bouton > CommandBars("BarreMacro").Controls.Add(Type:=msoControlButton)
bouton.Style = msoButtonCaption
bouton.FaceId = 3
bouton.OnAction = "MacroVerou"
bouton.Caption = "Vérouiller la feuille du mois"
Set bouton > CommandBars("BarreMacro").Controls.Add(Type:=msoControlButton)
bouton.Style = msoButtonCaption
bouton.FaceId = 1087
bouton.OnAction = "DeverouilleAdm"
bouton.Caption = "Dévérouiller la feuille du mois"
Set bouton > CommandBars("BarreMacro").Controls.Add(Type:=msoControlButton)
bouton.Style = msoButtonCaption
bouton.FaceId = 264
bouton.OnAction = "ValidCP"
bouton.Caption = "Vérouiller la feuille CP"
Set bouton > CommandBars("BarreMacro").Controls.Add(Type:=msoControlButton)
bouton.Style = msoButtonCaption
bouton.FaceId = 1016
bouton.OnAction = "DeverouilleCP"
bouton.Caption = "Dévérouiller la feuille CP"
Set bouton > CommandBars("BarreMacro").Controls.Add(Type:=msoControlButton)
bouton.Style = msoButtonCaption
bouton.OnAction = "Connexion"
bouton.Caption = "CONNEXION"
End Sub
je ne pense pas que tu puisses mettre le texte des boutons en gras
je ne pense pas que tu puisses mettre le texte des boutons en gras
je ne pense pas que tu puisses mettre le texte des boutons en gras
Bonjour,
Mettre le texte en gras pour les boutons est tout à fait possible (dans
windows),
l'ennui c'est que cela affectera tous les boutons de tous les menus de
toutes les applications.
lSteph
"Sunburn" a écrit dans le message de
news:J'ai créer mon Menu, mais les icones ne s'affichent pas ?
Est-ce possible de mettre le texte en Gras ?
De plus, je voudrais savoir où je dois placer la macro de l'emplacement.
-----
With Application.CommandBars("toto")
.Position = msoBarTop
.Visible = True
End With
End Sub
------
Merci Yann
Dim barre As CommandBar
Dim bouton As CommandBarControl
Set barre = CommandBars.Add(Name:="BarreMacro")
barre.Visible = True
Set bouton > > CommandBars("BarreMacro").Controls.Add(Type:=msoControlButton)
bouton.Style = msoButtonCaption
bouton.OnAction = "Connexion"
bouton.Caption = "CONNEXION"
Set bouton > > CommandBars("BarreMacro").Controls.Add(Type:=msoControlButton)
bouton.Style = msoButtonCaption
bouton.FaceId = 3
bouton.OnAction = "MacroVerou"
bouton.Caption = "Vérouiller la feuille du mois"
Set bouton > > CommandBars("BarreMacro").Controls.Add(Type:=msoControlButton)
bouton.Style = msoButtonCaption
bouton.FaceId = 1087
bouton.OnAction = "DeverouilleAdm"
bouton.Caption = "Dévérouiller la feuille du mois"
Set bouton > > CommandBars("BarreMacro").Controls.Add(Type:=msoControlButton)
bouton.Style = msoButtonCaption
bouton.FaceId = 264
bouton.OnAction = "ValidCP"
bouton.Caption = "Vérouiller la feuille CP"
Set bouton > > CommandBars("BarreMacro").Controls.Add(Type:=msoControlButton)
bouton.Style = msoButtonCaption
bouton.FaceId = 1016
bouton.OnAction = "DeverouilleCP"
bouton.Caption = "Dévérouiller la feuille CP"
Set bouton > > CommandBars("BarreMacro").Controls.Add(Type:=msoControlButton)
bouton.Style = msoButtonCaption
bouton.OnAction = "Connexion"
bouton.Caption = "CONNEXION"
End Sub
Bonjour,
Mettre le texte en gras pour les boutons est tout à fait possible (dans
windows),
l'ennui c'est que cela affectera tous les boutons de tous les menus de
toutes les applications.
lSteph
"Sunburn" <Sunburn@discussions.microsoft.com> a écrit dans le message de
news: 53507724-CB2A-4DC1-ADD6-27537D0675A3@microsoft.com...
J'ai créer mon Menu, mais les icones ne s'affichent pas ?
Est-ce possible de mettre le texte en Gras ?
De plus, je voudrais savoir où je dois placer la macro de l'emplacement.
-----
With Application.CommandBars("toto")
.Position = msoBarTop
.Visible = True
End With
End Sub
------
Merci Yann
Dim barre As CommandBar
Dim bouton As CommandBarControl
Set barre = CommandBars.Add(Name:="BarreMacro")
barre.Visible = True
Set bouton > > CommandBars("BarreMacro").Controls.Add(Type:=msoControlButton)
bouton.Style = msoButtonCaption
bouton.OnAction = "Connexion"
bouton.Caption = "CONNEXION"
Set bouton > > CommandBars("BarreMacro").Controls.Add(Type:=msoControlButton)
bouton.Style = msoButtonCaption
bouton.FaceId = 3
bouton.OnAction = "MacroVerou"
bouton.Caption = "Vérouiller la feuille du mois"
Set bouton > > CommandBars("BarreMacro").Controls.Add(Type:=msoControlButton)
bouton.Style = msoButtonCaption
bouton.FaceId = 1087
bouton.OnAction = "DeverouilleAdm"
bouton.Caption = "Dévérouiller la feuille du mois"
Set bouton > > CommandBars("BarreMacro").Controls.Add(Type:=msoControlButton)
bouton.Style = msoButtonCaption
bouton.FaceId = 264
bouton.OnAction = "ValidCP"
bouton.Caption = "Vérouiller la feuille CP"
Set bouton > > CommandBars("BarreMacro").Controls.Add(Type:=msoControlButton)
bouton.Style = msoButtonCaption
bouton.FaceId = 1016
bouton.OnAction = "DeverouilleCP"
bouton.Caption = "Dévérouiller la feuille CP"
Set bouton > > CommandBars("BarreMacro").Controls.Add(Type:=msoControlButton)
bouton.Style = msoButtonCaption
bouton.OnAction = "Connexion"
bouton.Caption = "CONNEXION"
End Sub
Bonjour,
Mettre le texte en gras pour les boutons est tout à fait possible (dans
windows),
l'ennui c'est que cela affectera tous les boutons de tous les menus de
toutes les applications.
lSteph
"Sunburn" a écrit dans le message de
news:J'ai créer mon Menu, mais les icones ne s'affichent pas ?
Est-ce possible de mettre le texte en Gras ?
De plus, je voudrais savoir où je dois placer la macro de l'emplacement.
-----
With Application.CommandBars("toto")
.Position = msoBarTop
.Visible = True
End With
End Sub
------
Merci Yann
Dim barre As CommandBar
Dim bouton As CommandBarControl
Set barre = CommandBars.Add(Name:="BarreMacro")
barre.Visible = True
Set bouton > > CommandBars("BarreMacro").Controls.Add(Type:=msoControlButton)
bouton.Style = msoButtonCaption
bouton.OnAction = "Connexion"
bouton.Caption = "CONNEXION"
Set bouton > > CommandBars("BarreMacro").Controls.Add(Type:=msoControlButton)
bouton.Style = msoButtonCaption
bouton.FaceId = 3
bouton.OnAction = "MacroVerou"
bouton.Caption = "Vérouiller la feuille du mois"
Set bouton > > CommandBars("BarreMacro").Controls.Add(Type:=msoControlButton)
bouton.Style = msoButtonCaption
bouton.FaceId = 1087
bouton.OnAction = "DeverouilleAdm"
bouton.Caption = "Dévérouiller la feuille du mois"
Set bouton > > CommandBars("BarreMacro").Controls.Add(Type:=msoControlButton)
bouton.Style = msoButtonCaption
bouton.FaceId = 264
bouton.OnAction = "ValidCP"
bouton.Caption = "Vérouiller la feuille CP"
Set bouton > > CommandBars("BarreMacro").Controls.Add(Type:=msoControlButton)
bouton.Style = msoButtonCaption
bouton.FaceId = 1016
bouton.OnAction = "DeverouilleCP"
bouton.Caption = "Dévérouiller la feuille CP"
Set bouton > > CommandBars("BarreMacro").Controls.Add(Type:=msoControlButton)
bouton.Style = msoButtonCaption
bouton.OnAction = "Connexion"
bouton.Caption = "CONNEXION"
End Sub
Ok,
merci pour toutes ces réponse, donc pas de texte en gras, c pas grave, je
vais m'en passer, avec des beaux petits icones, ça ira.
merci à tous.
YannBonjour,
Mettre le texte en gras pour les boutons est tout à fait possible (dans
windows),
l'ennui c'est que cela affectera tous les boutons de tous les menus de
toutes les applications.
lSteph
"Sunburn" a écrit dans le message de
news:J'ai créer mon Menu, mais les icones ne s'affichent pas ?
Est-ce possible de mettre le texte en Gras ?
De plus, je voudrais savoir où je dois placer la macro de
l'emplacement.
-----
With Application.CommandBars("toto")
.Position = msoBarTop
.Visible = True
End With
End Sub
------
Merci Yann
Dim barre As CommandBar
Dim bouton As CommandBarControl
Set barre = CommandBars.Add(Name:="BarreMacro")
barre.Visible = True
Set bouton >> > CommandBars("BarreMacro").Controls.Add(Type:=msoControlButton)
bouton.Style = msoButtonCaption
bouton.OnAction = "Connexion"
bouton.Caption = "CONNEXION"
Set bouton >> > CommandBars("BarreMacro").Controls.Add(Type:=msoControlButton)
bouton.Style = msoButtonCaption
bouton.FaceId = 3
bouton.OnAction = "MacroVerou"
bouton.Caption = "Vérouiller la feuille du mois"
Set bouton >> > CommandBars("BarreMacro").Controls.Add(Type:=msoControlButton)
bouton.Style = msoButtonCaption
bouton.FaceId = 1087
bouton.OnAction = "DeverouilleAdm"
bouton.Caption = "Dévérouiller la feuille du mois"
Set bouton >> > CommandBars("BarreMacro").Controls.Add(Type:=msoControlButton)
bouton.Style = msoButtonCaption
bouton.FaceId = 264
bouton.OnAction = "ValidCP"
bouton.Caption = "Vérouiller la feuille CP"
Set bouton >> > CommandBars("BarreMacro").Controls.Add(Type:=msoControlButton)
bouton.Style = msoButtonCaption
bouton.FaceId = 1016
bouton.OnAction = "DeverouilleCP"
bouton.Caption = "Dévérouiller la feuille CP"
Set bouton >> > CommandBars("BarreMacro").Controls.Add(Type:=msoControlButton)
bouton.Style = msoButtonCaption
bouton.OnAction = "Connexion"
bouton.Caption = "CONNEXION"
End Sub
Ok,
merci pour toutes ces réponse, donc pas de texte en gras, c pas grave, je
vais m'en passer, avec des beaux petits icones, ça ira.
merci à tous.
Yann
Bonjour,
Mettre le texte en gras pour les boutons est tout à fait possible (dans
windows),
l'ennui c'est que cela affectera tous les boutons de tous les menus de
toutes les applications.
lSteph
"Sunburn" <Sunburn@discussions.microsoft.com> a écrit dans le message de
news: 53507724-CB2A-4DC1-ADD6-27537D0675A3@microsoft.com...
J'ai créer mon Menu, mais les icones ne s'affichent pas ?
Est-ce possible de mettre le texte en Gras ?
De plus, je voudrais savoir où je dois placer la macro de
l'emplacement.
-----
With Application.CommandBars("toto")
.Position = msoBarTop
.Visible = True
End With
End Sub
------
Merci Yann
Dim barre As CommandBar
Dim bouton As CommandBarControl
Set barre = CommandBars.Add(Name:="BarreMacro")
barre.Visible = True
Set bouton >> > CommandBars("BarreMacro").Controls.Add(Type:=msoControlButton)
bouton.Style = msoButtonCaption
bouton.OnAction = "Connexion"
bouton.Caption = "CONNEXION"
Set bouton >> > CommandBars("BarreMacro").Controls.Add(Type:=msoControlButton)
bouton.Style = msoButtonCaption
bouton.FaceId = 3
bouton.OnAction = "MacroVerou"
bouton.Caption = "Vérouiller la feuille du mois"
Set bouton >> > CommandBars("BarreMacro").Controls.Add(Type:=msoControlButton)
bouton.Style = msoButtonCaption
bouton.FaceId = 1087
bouton.OnAction = "DeverouilleAdm"
bouton.Caption = "Dévérouiller la feuille du mois"
Set bouton >> > CommandBars("BarreMacro").Controls.Add(Type:=msoControlButton)
bouton.Style = msoButtonCaption
bouton.FaceId = 264
bouton.OnAction = "ValidCP"
bouton.Caption = "Vérouiller la feuille CP"
Set bouton >> > CommandBars("BarreMacro").Controls.Add(Type:=msoControlButton)
bouton.Style = msoButtonCaption
bouton.FaceId = 1016
bouton.OnAction = "DeverouilleCP"
bouton.Caption = "Dévérouiller la feuille CP"
Set bouton >> > CommandBars("BarreMacro").Controls.Add(Type:=msoControlButton)
bouton.Style = msoButtonCaption
bouton.OnAction = "Connexion"
bouton.Caption = "CONNEXION"
End Sub
Ok,
merci pour toutes ces réponse, donc pas de texte en gras, c pas grave, je
vais m'en passer, avec des beaux petits icones, ça ira.
merci à tous.
YannBonjour,
Mettre le texte en gras pour les boutons est tout à fait possible (dans
windows),
l'ennui c'est que cela affectera tous les boutons de tous les menus de
toutes les applications.
lSteph
"Sunburn" a écrit dans le message de
news:J'ai créer mon Menu, mais les icones ne s'affichent pas ?
Est-ce possible de mettre le texte en Gras ?
De plus, je voudrais savoir où je dois placer la macro de
l'emplacement.
-----
With Application.CommandBars("toto")
.Position = msoBarTop
.Visible = True
End With
End Sub
------
Merci Yann
Dim barre As CommandBar
Dim bouton As CommandBarControl
Set barre = CommandBars.Add(Name:="BarreMacro")
barre.Visible = True
Set bouton >> > CommandBars("BarreMacro").Controls.Add(Type:=msoControlButton)
bouton.Style = msoButtonCaption
bouton.OnAction = "Connexion"
bouton.Caption = "CONNEXION"
Set bouton >> > CommandBars("BarreMacro").Controls.Add(Type:=msoControlButton)
bouton.Style = msoButtonCaption
bouton.FaceId = 3
bouton.OnAction = "MacroVerou"
bouton.Caption = "Vérouiller la feuille du mois"
Set bouton >> > CommandBars("BarreMacro").Controls.Add(Type:=msoControlButton)
bouton.Style = msoButtonCaption
bouton.FaceId = 1087
bouton.OnAction = "DeverouilleAdm"
bouton.Caption = "Dévérouiller la feuille du mois"
Set bouton >> > CommandBars("BarreMacro").Controls.Add(Type:=msoControlButton)
bouton.Style = msoButtonCaption
bouton.FaceId = 264
bouton.OnAction = "ValidCP"
bouton.Caption = "Vérouiller la feuille CP"
Set bouton >> > CommandBars("BarreMacro").Controls.Add(Type:=msoControlButton)
bouton.Style = msoButtonCaption
bouton.FaceId = 1016
bouton.OnAction = "DeverouilleCP"
bouton.Caption = "Dévérouiller la feuille CP"
Set bouton >> > CommandBars("BarreMacro").Controls.Add(Type:=msoControlButton)
bouton.Style = msoButtonCaption
bouton.OnAction = "Connexion"
bouton.Caption = "CONNEXION"
End Sub