Hi HansV
I have been using this code for a couple days and it seemed to be working great, but I noticed yesterday when I was navigating through different sheets and UserForms. I would develop a critical error that would close up my workbook, this does not occur all time, but it does only occur when I use this code to open sheet.
Code: Select all
Worksheets("Cover Page").Visible = xlSheetVisible
Worksheets("Cover Page ").Unprotect Password:=""
Application.Goto Worksheets("Cover Page ").Range("A1"), Scroll:=True
UserForm8.Hide
ActiveSheet.Protect DrawingObjects:=False, Contents:=True, Scenarios:=True, Password:=""
I also tried to change the ActiveSheet to Worksheets to help make it more uniform, I tried and then developed an error on .Protection
This morning I tried to rein act the error and of course I failed. I was trying to receive what type of error it actually was. I know it was serious enough to close my workbook.
I know there are a lot of different codes I can use that will appear to work OK
I am now trying this code at the moment and it seems to be OK. I eliminated the protection part of the code
Do you have any idea why this error has been occurring? And do you believe this new code may be a better approach to opening a hidden sheet