Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Word / Programming / April 2005

Tip: Looking for answers? Try searching our database.

How to disable "Cut" menu item from "Text" Menu of Word!

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Ahmad Jalil Qarshi - 20 Apr 2005 09:28 GMT
hi!

when the user right click on document a context menu named "Text" is
displayed. i want to disable the "Cut" menu item from there. is it possible.

Thanks

Ahmad Jalil Qarshi
Jean-Guy Marcil - 20 Apr 2005 15:34 GMT
Ahmad Jalil Qarshi was telling us:
Ahmad Jalil Qarshi nous racontait que :

> hi!
>
> when the user right click on document a context menu named "Text" is
> displayed. i want to disable the "Cut" menu item from there. is it
> possible.

Much easier is to create a macro called "EditCut". This will prevent any
cutting in any fashion (shortcut menu, tool bar, keyboard short cut, etc.)

Sub EditCut()

MsgBox "You are not allowed to cut."

End Sub

Signature

Salut!
_______________________________________
Jean-Guy Marcil - Word MVP
jmarcilREMOVE@CAPSsympatico.caTHISTOO
Word MVP site: http://www.word.mvps.org

Ahmad Jalil Qarshi - 21 Apr 2005 06:46 GMT
Thanks Jean!

ok you are right. but i don't want to display any message i just want to
Disable and Gray the menu item. isn't it possible.

Thanks in advance.
Ahmad Jalil Qarshi
> Ahmad Jalil Qarshi was telling us:
> Ahmad Jalil Qarshi nous racontait que :
[quoted text clipped - 20 lines]
> jmarcilREMOVE@CAPSsympatico.caTHISTOO
> Word MVP site: http://www.word.mvps.org
Jean-Guy Marcil - 21 Apr 2005 08:24 GMT
Ahmad Jalil Qarshi was telling us:
Ahmad Jalil Qarshi nous racontait que :

> Thanks Jean!
>
> ok you are right. but i don't want to display any message i just want
> to Disable and Gray the menu item. isn't it possible.

You can probably grey it with the "Enabled" property set to false.

If you disable it and do not warn users somehow, they will get frustrated
thinking that their computer is "broken". Whenever you change a regular
setting, it is only fair to let the user know what is going on.
Just my 2¢ on this...

Signature

Salut!
_______________________________________
Jean-Guy Marcil - Word MVP
jmarcilREMOVE@CAPSsympatico.caTHISTOO
Word MVP site: http://www.word.mvps.org

 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.