Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7
Default Disable the "view code" option

I have locked down everything on a trial workbook. All menus have been
disabled etc. I've even put a limit to the times you can open it.
My problem now is that if the user is "lucky" enough to right click on the
top of the active window, it drops down a menu with a "view code" option.
this now nullifies everything I've done to protect the document. Please can
someone tell me how to disable this "drop down" menu.
Any help would be greatly appreciated.
--
Callan
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,123
Default Disable the "view code" option

Try this one

Application.CommandBars("Document").FindControl(, 1561).Enabled = False

Or the whole right click menu
Application.CommandBars("Document").Enabled = False


--
Regards Ron de Bruin
http://www.rondebruin.nl


"Callan" wrote in message ...
I have locked down everything on a trial workbook. All menus have been
disabled etc. I've even put a limit to the times you can open it.
My problem now is that if the user is "lucky" enough to right click on the
top of the active window, it drops down a menu with a "view code" option.
this now nullifies everything I've done to protect the document. Please can
someone tell me how to disable this "drop down" menu.
Any help would be greatly appreciated.
--
Callan



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7
Default Disable the "view code" option

You're a STAR!
Thanks, the second line worked perfectly.
Application.CommandBars("Document").Enabled = False
Much appreciated

--
Callan


"Ron de Bruin" wrote:

Try this one

Application.CommandBars("Document").FindControl(, 1561).Enabled = False

Or the whole right click menu
Application.CommandBars("Document").Enabled = False


--
Regards Ron de Bruin
http://www.rondebruin.nl


"Callan" wrote in message ...
I have locked down everything on a trial workbook. All menus have been
disabled etc. I've even put a limit to the times you can open it.
My problem now is that if the user is "lucky" enough to right click on the
top of the active window, it drops down a menu with a "view code" option.
this now nullifies everything I've done to protect the document. Please can
someone tell me how to disable this "drop down" menu.
Any help would be greatly appreciated.
--
Callan




Reply
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/enable "Worksheet Move or copy" option? Saon Excel Worksheet Functions 1 May 15th 08 06:30 PM
Can't Disable the "Insert - Rows" menu option in Excel using VBA m PK9 Excel Programming 6 December 31st 05 09:01 AM
"Show Windows in Taskbar" option from the ToolsOptionsView broke Ben Zapp Excel Discussion (Misc queries) 0 November 9th 05 07:40 PM
Disable "Sheet tabs" check box under [Tools][Options]-[View] tab quartz[_2_] Excel Programming 4 April 2nd 05 03:25 AM
Code to disable "paste" as an option Jonsson[_35_] Excel Programming 7 June 21st 04 09:33 PM


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