S
Skip Bisconer
I have created a custom toolbar that runs a macro to open
a user form and the toolbar open and closes with the
workbook. The macro resides in a module in the workbook.
I back up all my important files to a zip drive before
closing each time. If I open the workbook from the last
place I saved, ie. the hard drive, the toolbar opens the
form as it should. If I open from the other source, ie.
the zip drive and click the toolbar, it tries to reload
the workbook from the source I last saved, and gives me
the halt that the workbook is already open.
I have tried renaming the file its trying to load. Doesn't
change the halt. If I save the workbook that works
properly, in the reverse order cited above, the problem
reverses. I have to remember where I last save the
workbook that worked properly. This happens on other
workbooks that I have custom toolbars that open and close
with a workbook.
My question is this. Should this be happening? If not what
can I change to stop it? My code is the following:
Private Sub Workbook_Open()
OpenMainForm
End Sub
Sub OpenMainForm()
'show the main form custom toolbar
Application.CommandBars("IrrigationMainForm").Visible =
True
End Sub
Thanks for any help you can give me.
Skip
a user form and the toolbar open and closes with the
workbook. The macro resides in a module in the workbook.
I back up all my important files to a zip drive before
closing each time. If I open the workbook from the last
place I saved, ie. the hard drive, the toolbar opens the
form as it should. If I open from the other source, ie.
the zip drive and click the toolbar, it tries to reload
the workbook from the source I last saved, and gives me
the halt that the workbook is already open.
I have tried renaming the file its trying to load. Doesn't
change the halt. If I save the workbook that works
properly, in the reverse order cited above, the problem
reverses. I have to remember where I last save the
workbook that worked properly. This happens on other
workbooks that I have custom toolbars that open and close
with a workbook.
My question is this. Should this be happening? If not what
can I change to stop it? My code is the following:
Private Sub Workbook_Open()
OpenMainForm
End Sub
Sub OpenMainForm()
'show the main form custom toolbar
Application.CommandBars("IrrigationMainForm").Visible =
True
End Sub
Thanks for any help you can give me.
Skip