M
Montana DOJ Help Desk
Word 2000
I have the following AutoOpen and AutoClose macros in the ThisDocument
module.
Private Sub AutoOpen()
CommandBars("Locates").Visible = True
BottomOfDocument = True
End Sub
Private Sub AutoClose()
CommandBars("Locates").Visible = False
SaveFile
End Sub
If the Locates toolbar is select on the View > Toolbars menu, then the above
macros work perfectly. However, if the Locates toolbar is NOT selected on
the View > Toolbars menu, then it will not be displayed the next time the
document is opened. Why?
I thought that by setting the Visible property = True in the AutoOpen macro,
that the toolbar would be displayed every time the document is opened.
FYI: The Locates toolbar is stored with the document and is not in
Normal.dot. Also, it should be available only to the specific document, and
not to any other document, which is why I turn it off with the AutoClose
macro.
-- Tom
State of Montana
Department of Justice Help Desk
"Making the world a safer place."
I have the following AutoOpen and AutoClose macros in the ThisDocument
module.
Private Sub AutoOpen()
CommandBars("Locates").Visible = True
BottomOfDocument = True
End Sub
Private Sub AutoClose()
CommandBars("Locates").Visible = False
SaveFile
End Sub
If the Locates toolbar is select on the View > Toolbars menu, then the above
macros work perfectly. However, if the Locates toolbar is NOT selected on
the View > Toolbars menu, then it will not be displayed the next time the
document is opened. Why?
I thought that by setting the Visible property = True in the AutoOpen macro,
that the toolbar would be displayed every time the document is opened.
FYI: The Locates toolbar is stored with the document and is not in
Normal.dot. Also, it should be available only to the specific document, and
not to any other document, which is why I turn it off with the AutoClose
macro.
-- Tom
State of Montana
Department of Justice Help Desk
"Making the world a safer place."