LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Preventing Right Click On Sheet Tab???


Hi all i have this code below that stops the user using right click on
cell how do i modify it so that they can not use right click on a shee
tab?

Regards,
Simon

Private Sub Workbook_SheetBeforeRightClick(ByVal Sh As Object, ByVa
Target As Range, Cancel As Boolean)
ActiveWindow.DisplayHeadings = False
Cancel = True
ShortcutMenus(xlWorksheetCell).Enabled = False
MsgBox "You Can Only Use Your Left Mouse Button To Make Your Choice!"
vbExclamation, "Mouse Warning"
End Su

--
Simon Lloy
-----------------------------------------------------------------------
Simon Lloyd's Profile: http://www.excelforum.com/member.php...nfo&userid=670
View this thread: http://www.excelforum.com/showthread.php?threadid=56505

 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Linked Spreadsheets - Preventing Access to Source Sheet [email protected] Excel Discussion (Misc queries) 1 March 16th 07 02:29 PM
shortcut for right click on sheet bar BorisS Excel Discussion (Misc queries) 1 November 30th 05 08:01 AM
Before right click in a sheet raj Excel Programming 2 December 21st 03 07:49 PM
Preventing users to move object in the sheet Dusan Excel Programming 1 November 23rd 03 11:24 PM
Preventing someone from unhiding a sheet Neil Excel Programming 4 October 8th 03 01:44 PM


All times are GMT +1. The time now is 08:24 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"