hide submenu items

M

Morten

I have digged around for ages to find out how to gray out
a specific item in a menu. It is easy to hide the top
manu item, but I want to be able to hide or gray out any
item under each menu item but have not found out how to
do this. Assistance would be very much apreciated...

RGDS
Morten
 
A

Albert D. Kallal

The format is somting like:

if IsInGroup(CurrentUser,"SuperUser") = True then

CommandBars("menu bar").Controls("records").
Controls("refresh").Visible = True

end if

if IsInGroup(CurrentUser(),"InvoideDeleteGroup") = true then

CommandBars("myCustomBar").Controls("AdminOptions").
Controls("DleeteInvoice").Visible = True

end if

Note that short cut menus are their own name also:

commandbars("your shortcut name").
Contorls("contorlName").visiable = false

You can replace the above 'visible with "enabled"

Also, I have broken those examples in to two lines...but they need to be on
one line...
 
M

Morten

Albert,

Thanks. Worked a dream. I used the line I left
underneath. Only tried it and one working solution is
plenty.

RGDS
Morten
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top