ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Disabling menus etc (https://www.excelbanter.com/excel-programming/299526-disabling-menus-etc.html)

DonB[_2_]

Disabling menus etc
 
I am sure this must have been covered several times
before, but can someone tell me how to disable menus,
tools etc, to prevent workbooks being tampered with.
Disabling tooklbars is not a problem

Many thanks

DonB

keepITcool

Disabling menus etc
 
Don,

Generally your user's will definitely NOT like it when you start messing
with their menu's and/or toolbars... else your code must be 110%
bulletproof to RESET their menu's on errors/close etc...

I think using the worksheet's protection with UserInterFaceonly = true is
the best way to go.

See vba help on Protect method (as applies to Worksheet)


keepITcool

< email : keepitcool chello nl (with @ and .)
< homepage: http://members.chello.nl/keepitcool


"DonB" wrote:

I am sure this must have been covered several times
before, but can someone tell me how to disable menus,
tools etc, to prevent workbooks being tampered with.
Disabling tooklbars is not a problem

Many thanks

DonB



Bob Phillips[_6_]

Disabling menus etc
 
Don,

It is the same way, a menu is just a commandbar as a toolbar is.

--

HTH

Bob Phillips
... looking out across Poole Harbour to the Purbecks
(remove nothere from the email address if mailing direct)

"DonB" wrote in message
...
I am sure this must have been covered several times
before, but can someone tell me how to disable menus,
tools etc, to prevent workbooks being tampered with.
Disabling tooklbars is not a problem

Many thanks

DonB





All times are GMT +1. The time now is 09:03 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com