I'm using the following simple codes to hide or unhide rows, upon clicking an option button:
[vba]
Sub Manual_Click()
Range("35:35").EntireRow.Hidden = True
Range("36:36").EntireRow.Hidden = False
End Sub
Sub Auto_Click()
Range("35:35").EntireRow.Hidden = False
Range("36:36").EntireRow.Hidden = True
End Sub
[/vba]
Not surprisingly, I get a Runtime 1004 error when the workbook is password-protected. Can this be overcome by entering an exception in the ProtectAll routine?