Customized Menu Bar

MarionD

Registered User.
Local time
Today, 20:44
Joined
Oct 10, 2000
Messages
425
Hi there,

Can anyone tell me if (and how!) I can set entries in a customized menu bar to "enabled" true or false. Users login to the DB with a password, and I would like certain menu items dissabled for certain users.

I've been trying along these lines but no joy yet!

Set menubar = CommandBars.ActiveMenuBar
With menubar
.Controls.Item("exportdatei erstellen").enabled = False
End With

Would certainly appreciate any help!
 
Hi again,

I'm getting there..

the line I need is

Application.CommandBars("Formmenu").Controls(1).Enabled = False

Now I need to take this one step further... This disables the main menu point, but how do I refer to the "sub menu options"
e.g. I dan't want to disable the main option "File", but I want to disable "New" under File > New

Thanks again
 
Thanks for the reply Peter. I've got it working now!
 

Users who are viewing this thread

Back
Top Bottom