Hide Tab in Ribbon

  • Thread starter Thread starter Ronald
  • Start date Start date
R

Ronald

Hi all.

I need to hide or make visible a tab of a custom ribbon of a database that
is not attached to a form.
I try to use:
Access.Application.CommandBars("<RibbonName>").Controls("<TabName>").Visible
= False

But I get the error that the object is closed or does not exist.
What is the right code?

Thanks,

Ronald.
 
Back
Top