![]() |
|
Forum
|
|
|
#2 (permalink) |
|
XLDnaute Accro
Date d'inscription: mars 2005
Messages: 1 379
|
Bonjour,
Comme cela je verrai bien vers onkey, mais le plus simple, est de créer une macro avec le raccourci x qui ne fera rien. exemple: (Penser ensuite à aller dans les options pour définir le raccourci clavier) sub Macro_Qui_ne_fait_rien_x End sub
__________________
Salutations Michel Pour faire facilement vos comptes personnels http://www.excel-downloads.com/remos...s-MJ-2007.html Trouvez les couleurs Le JEU http://www.excel-downloads.com/forum...-couleurs.html Trouvez le mot http://www.excel-downloads.com/forum...tml#post572580 |
|
|
|
|
|
#3 (permalink) |
|
XLDnaute Barbatruc
Date d'inscription: juin 2007
Version Excel : Excel 2003 (PC)
Messages: 3 107
|
Bonjour chappyporfaro, MJ13, le forum
pour empêcher toute forme de "couper" : Sub InterdireCouper() On Error Resume Next With Application .OnKey "^x", "" .CommandBars("Edit").FindControl(ID:=21).Enabled = False .CommandBars("Cell").FindControl(ID:=21).Enabled = False .CommandBars("Column").FindControl(ID:=21).Enabled = False .CommandBars("Row").FindControl(ID:=21).Enabled = False .CommandBars("Button").FindControl(ID:=21).Enabled = False .CommandBars("Formula Bar").FindControl(ID:=21).Enabled = False .CommandBars("Worksheet Menu Bar").FindControl(ID:=21).Enabled = False .CommandBars("Standard").FindControl(ID:=21).Enabl ed = False End With End Sub Sub RetablirCouper() On Error Resume Next With Application .OnKey "^x" .CommandBars("Edit").FindControl(ID:=21).Enabled = True .CommandBars("Cell").FindControl(ID:=21).Enabled = True .CommandBars("Column").FindControl(ID:=21).Enabled = True .CommandBars("Row").FindControl(ID:=21).Enabled = True .CommandBars("Button").FindControl(ID:=21).Enabled = True .CommandBars("Formula Bar").FindControl(ID:=21).Enabled = True .CommandBars("Worksheet Menu Bar").FindControl(ID:=21).Enabled = True .CommandBars("Standard").FindControl(ID:=21).Enabl ed = True End With End Sub que tu pourrais mettre dans le (pour l'interdiction) : Private Sub Workbook_Open() End Sub et dans le (pour la remise en fonction) : Private Sub Workbook_BeforeClose(Cancel As Boolean) End Sub Bon Dimanche |
|
|
|
|
|
#5 (permalink) |
|
XLDnaute Nouveau
|
Bonjour tout le monde,
Mon ami a essayé les sub de bhbh. Ça fonctionne très bien pour désactiver l'option "couper" dans le menu Edition mais la combinaison clavier reste en fonction. Il a ajouté l'idée d'une sub vide tel que proposé par MJ13 et le tout fonctionne parfaitement bien. Merci pour le support Chappy
__________________
Chappy
|
|
|
|
| ANNONCES | |
![]() |
| Liens sociaux |
| Outils de la discussion | |
|
|
Discussions similaires
|
||||
| Discussion | Auteur | Forum | Réponses | Dernier message |
| Raccourci Clavier | ljoue | Forum Excel | 3 | 12/04/2006 19h08 |
| Raccourci clavier | emp06bis | Forum Excel | 6 | 07/02/2006 15h13 |
| raccourci clavier | excelplus | Forum Excel | 2 | 07/07/2005 00h43 |
| Raccourci clavier $ | michel | Forum Excel Downloads - Archives | 4 | 22/06/2003 18h57 |
| raccourci clavier | fabimike | Forum Excel Downloads - Archives | 3 | 13/10/2002 04h59 |