Macro that will unhide then hide rows
Using my style of code
Private Sub Worksheet_Change(ByVal Target As Range)
Rows(10).EntireRow.Hidden = Range("A1").Value = 99
End Sub
but you should also be using Target somewhere as you are monitoring the
change event.
--
HTH
Bob Phillips
(replace somewhere in email address with gmail if mailing direct)
"Gary''s Student" wrote in message
...
This goes in worksheet code:
Private Sub Worksheet_Change(ByVal Target As Range)
If Range("A1").Value = 99 Then
Rows(10).EntireRow.Hidden = True
Else
Rows(10).EntireRow.Hidden = False
End If
End Sub
If cell A5 becomes 99 then row 10 is hidden, otherwise it is un-hidden.
--
Gary's Student
"Bob Phillips" wrote:
Rows("5:6").Hidden = Range("A1").Value = "value"
--
HTH
Bob Phillips
(replace somewhere in email address with gmail if mailing direct)
"minka" wrote in message
...
Hi,
Would someone be so kind as to assist..please
I am trying to create a macro that will unhide and hid rows dependant
on
the
content of column A.
|