Neo, I need some additional help (Re: Macros on protected document)
Posted by Chris Jones on August 15, 2001 9:36 AM
I did what you said, but it didn't work. I got a statement that said:
'Run Time Error 1004'
'Unable to set the Hidden property of the Range Class'
The following line was highlighted when went to the debugger:
Selection.EntireRow.Hidden = False
I tried it without a password that looked like this:
sheet1.unprotect("")
Rows("17:29").Select
Selection.EntireRow.Hidden = False
Rows("22:28").Select
Selection.EntireRow.Hidden = True
sheet1.protect("")
I also tried it with a password and it didn't work