Prevent Right Click Menu

S

Sandy

How can I prevent a menu popping up when the user Right Clicks - anywhere in
the workbook. Excel 2003.

TIA
Sandy
 
A

Andy Pope

Hi,

Code in the Thisworkbook object to stop right clicking on sheet.

Private Sub Workbook_SheetBeforeRightClick(ByVal Sh As Object, ByVal Target
As Range, Cancel As Boolean)

Cancel = True

End Sub

Cheers
Andy
 
P

Peter T

In the ThisWorkbook module

Private Sub Workbook_SheetBeforeRightClick(ByVal Sh As Object, _
ByVal Target As Range, Cancel As Boolean)

Cancel = True

End Sub

Regards,
Peter T
 

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.

Ask a Question

Top