MenuBar Question

  • Thread starter Thread starter Joe Williams
  • Start date Start date
J

Joe Williams

I have an app with a custom menu bar. Is there any way to programatically
"dim" options that are not valid or that a user should not access?

For instance, i have a form that only certain users can open based on thier
group membership. My main navigation tool is a custom menu bar. I would like
to be able to "dim" or gray out the option to open this form if the user is
not a member of a particular group.

Can it be done?

Thanks

Joe
 
Joe Williams said:
I have an app with a custom menu bar. Is there any way to programatically "dim"
options that are not valid or that a user should not access?

For instance, i have a form that only certain users can open based on thier
group membership. My main navigation tool is a custom menu bar. I would like
to be able to "dim" or gray out the option to open this form if the user is
not a member of a particular group.

Can it be done?

The following will disable the first menu item in a menu bar.

Dim Mnu as Object
Set Mnu = CommandBars("MenuName")
Mnu.Controls(1).Enabled = False
 
Back
Top