Copy this code, right-click the sheet tab, select "View Code" and paste the code into the window
that appears.
You can limit which cells it disables by using the Target range object....
HTH,
Bernie
MS Excel MVP
Private Sub Worksheet_BeforeRightClick(ByVal Target As Range, Cancel As Boolean)
Cancel = True
End Sub
Private Sub Worksheet_BeforeDoubleClick(ByVal Target As Range, Cancel As Boolean)
Cancel = True
End Sub
HTH,
Bernie
MS Excel MVP
Ask a Question
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.