spikepl
Eledittingent Beliped
- Local time
- Today, 13:27
- Joined
- Nov 3, 2010
- Messages
- 6,142
I can't find (by google) any code to open/close the navigation pane from VBA.
I have found code to hide/unhide it, but when I unhide it, it's open. I'd like to be able to hide/unhide it, but when unhidden, the thing should preferably remain closed.
Any hints?
I have found code to hide/unhide it, but when I unhide it, it's open. I'd like to be able to hide/unhide it, but when unhidden, the thing should preferably remain closed.
Any hints?
Code:
Private Sub cmdHideNP_Click()
DoCmd.NavigateTo "acNavigationCategoryObjectType"
DoCmd.RunCommand acCmdWindowHide
End Sub
Private Sub cmdUnhideNP_Click()
DoCmd.SelectObject acTable, , True
End Sub