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: 85
Default Textbox (Object) Right Click Menu - Disable Cut

I am looking to disable the right click Cut event when dealing with Text
boxes (Drawing Objects). I have seen code that disables the right click cut.
The following code works on the page, but not when a textbox is selected:

Dim TheCmdBar as Office.CommandBarControl

for each TheCmdBar in Applicaiton.CommandBars.FindControls(ID:=21)
TheCmdBar.Enabled = False
Next TheCmdBar

Thanks in advance.



 
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
Disable right click menu Mark Excel Programming 5 August 9th 09 09:15 PM
adding right click menu to textbox אלי Excel Programming 3 July 3rd 07 06:46 AM
How do I disable the right-click shortcut menu on charts Robbo Excel Programming 0 February 23rd 07 12:49 AM
disable customize option when right click on menu bar areddy[_3_] Excel Programming 2 October 20th 05 11:19 AM
disable right click menu JT[_2_] Excel Programming 4 February 1st 05 04:46 PM


All times are GMT +1. The time now is 06:15 AM.

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"