oxicottin
Learning by pecking away....
- Local time
- Yesterday, 19:09
- Joined
- Jun 26, 2007
- Messages
- 891
Hello, I wanted to know if there was a way to hide the menu in A2007 just like the way I used VBA to hide the menu in A2003. I want to be able to open the .mdb in 2003 and the menu will be hidden and if I open it up in 2007 I want it hidden as well. How could I acomploish this using VBA? Thanks!
This is what I use to hide menu in 2003 what would I add to the code?
I tried to add and it gave an error:
This is what I use to hide menu in 2003 what would I add to the code?
Code:
Private Sub Form_Load()
'**************************************************
'* Disables/Enables the menu bar in 2003 and 2007 *
'**************************************************
Application.CommandBars("Menu bar").Enabled = False '*****Disables Menu Bar******
'Application.CommandBars("Menu bar").Enabled = True '*****Enables Menu Bar*******
End Sub
I tried to add and it gave an error:
Code:
'DoCmd.ShowToolbar " The Ribbon ", acToolbarNo '******A2007 hide the Ribbon*****
'DoCmd.ShowToolbar " The Ribbon ", acToolbarYes '*****A2007 show the Ribbon*****