Hi guys
I am trying to make a sheet unhide the row below when someone inputs a value in a certain cell. and if they delete that value the same row will got back to hidden. I have this code which hides the row but how to I make it hide the row if the value in the cell is deleted.
Also if it isn't too much can you also tell me how I can make this happen to a long rang of cells in certain rows where the bottom row unhides when the top cell has a value and hides when there is no value in the cell above? Or do I have to keep repeating the above code for each cell?
thanks
I am trying to make a sheet unhide the row below when someone inputs a value in a certain cell. and if they delete that value the same row will got back to hidden. I have this code which hides the row but how to I make it hide the row if the value in the cell is deleted.
Code:
Public Sub Worksheet_Change(ByVal Target As Range)
If Target.Address(False, False) = "A2" Then
With Sheet19
.Rows(3).EntireRow.Hidden = False
Also if it isn't too much can you also tell me how I can make this happen to a long rang of cells in certain rows where the bottom row unhides when the top cell has a value and hides when there is no value in the cell above? Or do I have to keep repeating the above code for each cell?
thanks