Dear All,
Please find attached a sample file that demonstrates the problem that I need help with.
1. The workbook contains two worksheets, named MAIN OFFICE and SERVICES.
2. My desire is that when I double click to open the file, it is the MAIN OFFICE sheet that should be visible. The SERVICES sheet should be VeryHidden (i.e. xlSheetVeryHidden). At the moment, the first part works OK (see the codes in ThisWorkbook) - when I open the file, it is only the Main Office sheet that is visible. But although the Services sheet is hidden, it is not VeryHidden. This means that while on the Main Office sheet, a user can easily right-click and 'unhide' the Services sheet. I want to ensure that this is not possible.
3.Also when a user is on the Main Office sheet, and clicks the button to move to the Services sheet, the Main Office sheet should be VeryHidden while the Services sheet is visible. Again, making the Services sheet visible while hiding the Main Office sheet works OK. But I cannot get the Main Office sheet to be VeryHidden when the Services sheet is visible.
4. Making one sheet VeryHidden while the other sheet is visible is what I need help with, please, and I hope that someone will be able to tweak the codes that I have in ThisWorkbook and the two worksheets to enable me to get the result that I want.
Thanks all.
Buddy
Bookmarks