D Djblois Registered User. Local time Today, 06:52 Joined Jan 26, 2009 Messages 598 Apr 7, 2011 #1 I would like to use code to turn on and off these features: 1) full menus (ribbon - all commands) 2) Navigation Pane 3) Tabbed Documents How do I do this with VBA?
I would like to use code to turn on and off these features: 1) full menus (ribbon - all commands) 2) Navigation Pane 3) Tabbed Documents How do I do this with VBA?
G gbnz Registered User. Local time Today, 08:52 Joined Mar 12, 2010 Messages 63 Apr 7, 2011 #2 Code to turn on and off the Ribbon: Code: 'on DoCmd.ShowToolbar "Ribbon", acToolbarYes 'off DoCmd.ShowToolbar "Ribbon", acToolbarNo Code to open and close the Navigation Pane: Code: 'to hide the navigation pane DoCmd.NavigateTo "acNavigationCategoryObjectType" DoCmd.RunCommand acCmdWindowHide 'to show the navigation pane DoCmd.SelectObject acTable, , True Tabs are discussed here: http://office.microsoft.com/en-us/access-help/show-or-hide-object-tabs-HA001229281.aspx Good luck
Code to turn on and off the Ribbon: Code: 'on DoCmd.ShowToolbar "Ribbon", acToolbarYes 'off DoCmd.ShowToolbar "Ribbon", acToolbarNo Code to open and close the Navigation Pane: Code: 'to hide the navigation pane DoCmd.NavigateTo "acNavigationCategoryObjectType" DoCmd.RunCommand acCmdWindowHide 'to show the navigation pane DoCmd.SelectObject acTable, , True Tabs are discussed here: http://office.microsoft.com/en-us/access-help/show-or-hide-object-tabs-HA001229281.aspx Good luck
D Djblois Registered User. Local time Today, 06:52 Joined Jan 26, 2009 Messages 598 Apr 8, 2011 #3 gbnz said: Code to turn on and off the Ribbon: Code: 'on DoCmd.ShowToolbar "Ribbon", acToolbarYes 'off DoCmd.ShowToolbar "Ribbon", acToolbarNo Code to open and close the Navigation Pane: Code: 'to hide the navigation pane DoCmd.NavigateTo "acNavigationCategoryObjectType" DoCmd.RunCommand acCmdWindowHide 'to show the navigation pane DoCmd.SelectObject acTable, , True Tabs are discussed here: http://office.microsoft.com/en-us/access-help/show-or-hide-object-tabs-HA001229281.aspx Good luck Click to expand... the Navigation pane code does not actually close it - it minimizes it. I want to be able to close it and open it if possible.
gbnz said: Code to turn on and off the Ribbon: Code: 'on DoCmd.ShowToolbar "Ribbon", acToolbarYes 'off DoCmd.ShowToolbar "Ribbon", acToolbarNo Code to open and close the Navigation Pane: Code: 'to hide the navigation pane DoCmd.NavigateTo "acNavigationCategoryObjectType" DoCmd.RunCommand acCmdWindowHide 'to show the navigation pane DoCmd.SelectObject acTable, , True Tabs are discussed here: http://office.microsoft.com/en-us/access-help/show-or-hide-object-tabs-HA001229281.aspx Good luck Click to expand... the Navigation pane code does not actually close it - it minimizes it. I want to be able to close it and open it if possible.
G gbnz Registered User. Local time Today, 08:52 Joined Mar 12, 2010 Messages 63 Apr 8, 2011 #4 I am not too sure what you mean by minimizing the Navigation Pane, but I have a database attached that illustrates my point... Attachments NavePaneTest.zip NavePaneTest.zip 14 KB · Views: 132
I am not too sure what you mean by minimizing the Navigation Pane, but I have a database attached that illustrates my point...