Hide menus in A2003 and A2007 using VBA

oxicottin

Learning by pecking away....
Local time
Today, 17:12
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?
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*****
 
vbaInet, This is a temp fix I did remove the pop ups ect. and I have been rooting around on my bosses A07 and its really not that bad. I probably will mess with it in my spare time when I get some...:p
 
The first link is the answer to your question. Not much to learn, just follow what it says. 15 minutes of your time.:)
 
vbaInet, since I set the properties of my reports ect to "popup- no" and took out the DoCmd.maximize on the reports open, how can i make the window fill the space without covering the menu bar and task bar like in the picture, I dont want to cover the windows min,max and close buttons? Oh and I routed around in A2007 a little more and read some more about how to do stuff and instead of using code I just went into thier copy and hid or minimized the ribbon which I like. Im starting to like that version.... :D

Thanks!
Chad
 

Attachments

  • 3.JPG
    3.JPG
    23.5 KB · Views: 175
That's only available in Report View, which as you know doesn't include the navigation buttons. There's no in between.

Your boss can use the zoom menu to increase the size of the report. Again, that would require you to include the Ribbon:D

I'm glad you're beginning to learn the new features of 2007.
 
I asked my admin to install a copy on my PC but you know, thats going to take forever.... :p Well im learning...:D

Thanks,
Chad
 
I think you should go and get it and install yourself if they are wasting time ;)

Good luck in your quest for knowledge.
 

Users who are viewing this thread

Back
Top Bottom