Bonjour,
Je voudrais intégrer dans un morceau de code une ligne qui fasse l'action "ctrl+c" c'est à dire qui fasse comme si on appuyait sur les touches du clavier "contrôle+c" en même temps. Je ne connais pas la syntaxe pour faire cela. Est-ce possible ?
Voici le code et l'endroit où je veux insérer cette fonction (en majuscule) :
Merci d'avance.
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19 Set cmb = Application.CommandBars.Add("Mnu_CopierCollerAnnuler", msoBarPopup) Set btn = cmb.Controls.Add(msoControlButton) With btn .Caption = "copier" .Style = msoButtonCaption .OnAction = "FONCTION CTRL+C" End With Set btn = cmb.Controls.Add(msoControlButton) With btn .Caption = "coller" .Style = msoButtonCaption .OnAction = "FONCTION CTRL+V" End With Set btn = cmb.Controls.Add(msoControlButton) With btn .Caption = "annuler" .Style = msoButtonCaption .OnAction = "FONCTION CTRL+Z" End With
Partager