Programmaticaly hide controls in a custom toolbar

  • Thread starter Thread starter Silvio
  • Start date Start date
S

Silvio

How can I programmatically hide a button/control in a custom tool bar?

My tool bat name is Admin and the button is name is frmAdmin. I am trying to
make button visible/disabled or invisible/enabled depending on user log on
credentials.

Thank you,
Silvio
 
Silvio said:
How can I programmatically hide a button/control in a custom tool bar?

My tool bat name is Admin and the button is name is frmAdmin. I am trying to
make button visible/disabled or invisible/enabled depending on user log on
credentials.


Use the methods/properties of the CommandBar and
CommandBarControl objects (see VBA Help for details).

What you asked about might be something like:
CommandBars!Admin.Controls!frmAdmin.Visible = False
 
Back
Top