Hi, I got this code function for hiding the ribbon and Navigation Pane from this forum at: http://www.access-programmers.co.uk/forums/showthread.php?t=262446&highlight=hiding+navigation+pane+vba It works great for hiding. I had to improvise to un-hide the ribbon, but had no luck with the navigation pane. The original function is:
The code I used to un-hide is:
I have commented out the DoCmd.RunCommand because it crashes there, the acCmdWindowUnhide not being available. I honestly don't understand all of this code, being a novice, so I guessed a good bit. Can anyone tell me how to unhide the navigation pane?
Code:
Function HideShowRibbon()
SendKeys "^{F1}", True
DoCmd.ShowToolbar "Ribbon", acToolbarNo
DoCmd.NavigateTo "acNavigationCategoryObjectType"
DoCmd.RunCommand acCmdWindowHide
End Function
The code I used to un-hide is:
Code:
Function ShowRibbon()
SendKeys "^{F2}", False
DoCmd.ShowToolbar "Ribbon", acToolbarYes
DoCmd.NavigateTo "acNavigationCategoryObjectType"
' DoCmd.RunCommand acCmdWindowUnhide
End Function
I have commented out the DoCmd.RunCommand because it crashes there, the acCmdWindowUnhide not being available. I honestly don't understand all of this code, being a novice, so I guessed a good bit. Can anyone tell me how to unhide the navigation pane?