redbaron06
New Member
- Joined
- Aug 6, 2010
- Messages
- 44
Does anyone know if there is a way to hide the Access 2007 Ribbon on Open but not the Quick Access Toolbar (QAT). I would like my users to have access to a few custom buttons on the QAT without being bogged down by the ribbon. Thanks in advance!
Code:
[FONT=Calibri][SIZE=3]Public Function ShowRibbon()[/SIZE][/FONT]
[FONT=Calibri][SIZE=3]DoCmd.ShowToolbar "Ribbon", acToolbarYes[/SIZE][/FONT]
[FONT=Calibri][SIZE=3]End Function[/SIZE][/FONT]
[FONT=Calibri][SIZE=3]Public Function HideRibbon()[/SIZE][/FONT]
[FONT=Calibri][SIZE=3]DoCmd.ShowToolbar "Ribbon", acToolbarNo[/SIZE][/FONT]
[FONT=Calibri][SIZE=3]End Function[/SIZE][/FONT]
<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /><o:p>[FONT=Calibri][SIZE=3] [/SIZE][/FONT]</o:p>
<o:p>[FONT=Calibri][SIZE=3] [/SIZE][/FONT]</o:p>
[FONT=Calibri][SIZE=3]Private Sub Form_Open(Cancel As Integer)[/SIZE][/FONT]
[FONT=Calibri][SIZE=3]Call HideRibbon[/SIZE][/FONT]
[FONT=Calibri][SIZE=3]End Sub[/SIZE][/FONT]
<o:p>[FONT=Calibri][SIZE=3] [/SIZE][/FONT]</o:p>
[FONT=Calibri][SIZE=3]Private Sub Form_BeforeClose(Cancel As Integer)[/SIZE][/FONT]
<o:p>[FONT=Calibri][SIZE=3] [/SIZE][/FONT]</o:p>[FONT=Calibri][SIZE=3]DoCmd.ShowToolbar “Ribbon”, acToolbarYes[/SIZE][/FONT]
[FONT=Calibri][SIZE=3]End Sub[/SIZE][/FONT]