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: 183
Default disable shortcut key from menu control

Hello,
I would like to prevent the user to use Cut from the menu. I managed to
disable the menu item using the code below, but have not managed to disable
the Shortkey Ctrl+X.
Any idea? thanks

Sub preventcut()
' disable cut
Application.CommandBars("Worksheet Menu Bar").Reset
With Application.CommandBars("Worksheet Menu Bar").Controls
.Item(2).Controls(3).Enabled = False
End With
End Sub
Sub resetmenu()
Application.CommandBars("Worksheet Menu Bar").Reset
End Sub

--
caroline
 
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
How do I disable the right-click shortcut menu on charts Robbo Excel Programming 0 February 23rd 07 12:49 AM
disable alt and control shortcut keys jhahes[_76_] Excel Programming 1 August 15th 06 04:16 AM
Obtain value of a control on a shortcut menu quartz[_2_] Excel Programming 1 February 10th 05 07:20 PM
Shortcut Menu With Toggle Control quartz[_2_] Excel Programming 0 February 10th 05 02:23 PM
How to DISABLE THE CONTROL BREAK shortcut keys Marcello do Guzman Excel Programming 3 January 9th 04 01:48 PM


All times are GMT +1. The time now is 07:35 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"