Hide Tab in Ribbon

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.
 

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