S
Shadow
How can I close all the toolbars with VBA?
I've tried the following :
I've tried the following :
Shadow said:How can I close all the toolbars with VBA?
I've tried the following :
-----------------------------------------------------
Dim cb
For Each cb In Application.CommandBars
If cb.Visible = True Then cb.Visible = False
Next
Van T. Dinh said:Slight inconsistency in Access (Office?): for CommandBars, use the Enabled
Property to show / hide the CommandBar.
Don't bother to check whether it is enabled or not. Simply set Enabled to
False for each CommandBar.
Shadow said:Thank you for trying to help and replying.
I'm receiving an error while I try to run your code.
http://www.kkkotobuki.co.jp/error.jpg
any kind of advice is much appreciated.