close ALL Toolbar programatically

G

Guest

How I close all toolbars when a form is loaded.
The reason is, I just want more space for that form.
On my pc, I check the all toolbars currently loading and close with command
DoCmd.ShowToolbar "Toolbar's Name", acToolbarNo
But on others Pc, I'm not sure as other+3rd parties Toolbar loading or not.
So, I want to close all toolbars programatically.
 
G

Guest

There a previous post given by Todd on how to hide toolbars, try it

Dim i As Integer
For i = 1 To CommandBars.Count
CommandBars(i).Enabled = False
Next i
 

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

Similar Threads


Top