Twitter iPhone pliant OnePlus 11 PS5 Disney+ Orange Livebox Windows 11

Réactiver le clic droit

2 réponses
Avatar
Sunburn
Bonjour,
comment puis-je activer le clic droit ?
pour désactiver :
----
Private Sub Workbook_SheetBeforeRightClick(ByVal Sh As Object, _
ByVal Target As Range, Cancel As Boolean)
Cancel = True
End Sub
-----
Merci
YANN

2 réponses

Avatar
isabelle
bonjour Sunburn,

Sub désactiveCommandBar()
Application.CommandBars("Cell").Enabled = False
End Sub

Sub activeCommandBar()
Application.CommandBars("Cell").Enabled = True
End Sub

isabelle

Sunburn a écrit :
Bonjour,
comment puis-je activer le clic droit ?
pour désactiver :
----
Private Sub Workbook_SheetBeforeRightClick(ByVal Sh As Object, _
ByVal Target As Range, Cancel As Boolean)
Cancel = True
End Sub
-----
Merci
YANN


Avatar
Sunburn
Merci Isabelle, ça fonctionne très bien.
Yann

"isabelle" a écrit :

bonjour Sunburn,

Sub désactiveCommandBar()
Application.CommandBars("Cell").Enabled = False
End Sub

Sub activeCommandBar()
Application.CommandBars("Cell").Enabled = True
End Sub

isabelle

Sunburn a écrit :
> Bonjour,
> comment puis-je activer le clic droit ?
> pour désactiver :
> ----
> Private Sub Workbook_SheetBeforeRightClick(ByVal Sh As Object, _
> ByVal Target As Range, Cancel As Boolean)
> Cancel = True
> End Sub
> -----
> Merci
> YANN