Thread
:
File|Close w/Save fires Workbook_Open twice
View Single Post
#
5
Posted to microsoft.public.excel.programming
Mike Preston
external usenet poster
Posts: 8
File|Close w/Save fires Workbook_Open twice
Anybody else have any ideas or does my "the file may be partially
corrupted" have some merit?
Thanks
mike
On Thu, 28 Aug 2003 14:16:30 GMT,
(Mike
Preston) wrote:
As you mentioned, this is a protection scheme, so if a user opens the
workbook without enabling macros, the intent is to have only one
worksheet visible, with a message that tells the user to close down
the workbook and reopen it, this time enabling macros.
When the workbook is opened with macros disabled, it also works as
expected. That is, only one worksheet is visible and the other "real"
worksheets are as hidden as I can make them (xlSheetVeryHidden).
And, when the one worksheet is slightly changed (just moving the
selected cell) and then exited with [File|Close (accept save)], it
exits as expected (the Workbook_Open sub does not fire twice).
I'm beginning to think I need to copy the sheets, one by one, to
another workbook as maybe this one is slightly corrupted.
Thanks again.
mike
Reply With Quote
Mike Preston
View Public Profile
Find all posts by Mike Preston