boxsterman
Active Member
- Joined
- Apr 16, 2002
- Messages
- 285
Hi all,
I have some code on a particular worksheet. All is fine when the sheet is not protected, however when protected I receive a Run-time error '1004': Unable to set the Hidden porperty of the Range class.
Here is some of the code, it errors out on the hidden "True" line.
Private Sub Worksheet_SelectionChange(ByVal Target As Range)
If Not IsNumeric(Range("C68")) Then Exit Sub
If Range("C68").Value > 0.03 Then
Range("73:85").EntireRow.Hidden = False
Else
Range("73:85").EntireRow.Hidden = True
End If
Thank you very much.
I have some code on a particular worksheet. All is fine when the sheet is not protected, however when protected I receive a Run-time error '1004': Unable to set the Hidden porperty of the Range class.
Here is some of the code, it errors out on the hidden "True" line.
Private Sub Worksheet_SelectionChange(ByVal Target As Range)
If Not IsNumeric(Range("C68")) Then Exit Sub
If Range("C68").Value > 0.03 Then
Range("73:85").EntireRow.Hidden = False
Else
Range("73:85").EntireRow.Hidden = True
End If
Thank you very much.