Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Way to by pass PW to hide sheet
Hello,
I have a sheet in my workbook that need to be protected, then hidden. I need to write a macro to perform these task. I ran into the problem with the macro because the sheet can not be protected in order to be protected. It gave me an error. Is there a way in the macro to protected the sheet then hide the sheet by ignoring the protection? Thanks Cameron *** Sent via Developersdex http://www.developersdex.com *** Don't just participate in USENET...get rewarded for it! |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
Way to by pass PW to hide sheet
Try some code like the following:
Dim WS As Worksheet Set WS = Worksheets("Sheet1") WS.Visible = xlSheetHidden WS.Protect Password:="ThePassword" -- Cordially, Chip Pearson Microsoft MVP - Excel Pearson Software Consulting, LLC www.cpearson.com "Cam Hua" wrote in message ... Hello, I have a sheet in my workbook that need to be protected, then hidden. I need to write a macro to perform these task. I ran into the problem with the macro because the sheet can not be protected in order to be protected. It gave me an error. Is there a way in the macro to protected the sheet then hide the sheet by ignoring the protection? Thanks Cameron *** Sent via Developersdex http://www.developersdex.com *** Don't just participate in USENET...get rewarded for it! |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
I forgot my password, how do I open a sheet if I forgot the pass | Excel Worksheet Functions | |||
Unprotecting a work sheet with out knowledge of pass word. | Excel Worksheet Functions | |||
Forgot my pass word for excel sheet | Excel Worksheet Functions | |||
Is it possible to open the VBA form with a link in a sheet and to pass variable from a cell to the VBA form? | Excel Programming | |||
hide sheet? uncheck sheet tabs? or ??? | Excel Programming |