Menu Bar - toolbar not available in Customize after running some VBA

Mr.K

Registered User.
Local time
Today, 06:54
Joined
Jan 18, 2006
Messages
104
I ran a code to hide all toolbars through an AutoExec module. (I also created a module to unhide all). Now, even though I disabled the autoexec Access opens without the Menu Bar. I did run the unhide code which did work and showed all the menu including the Menu Bar, but after I close the database and then reopen it the Menu Bar is not there and if pull up the Customize window the Menu Bar isn't listed there either.:confused:

Code used to hide commandbars:
Code:
    For i = 1 To CommandBars.Count
    CommandBars(i).Enabled = False
    Next i
Code used to unhide commandbars:
Code:
    For i = 1 To CommandBars.Count
    CommandBars(i).Enabled = True
    Next i
 

Users who are viewing this thread

Back
Top Bottom