Hi,
I am struggling with the VBA code below. The code works fine until I delete the contents of the target cell, this does not have the desired effect of hiding the row below. I believe this is due to the target cell B315 being merged with B316. Any ideas how I can rectify this? Thanks, Justin
PS I'm a complete novice of VBA
If Target.Address = "$B$315" Then
If Target.Value = "Free text (enter text below)" Then
Range("a316").EntireRow.Hidden = False
Else
Range("a316").EntireRow.Hidden = True
End If
End If
I am struggling with the VBA code below. The code works fine until I delete the contents of the target cell, this does not have the desired effect of hiding the row below. I believe this is due to the target cell B315 being merged with B316. Any ideas how I can rectify this? Thanks, Justin
PS I'm a complete novice of VBA
If Target.Address = "$B$315" Then
If Target.Value = "Free text (enter text below)" Then
Range("a316").EntireRow.Hidden = False
Else
Range("a316").EntireRow.Hidden = True
End If
End If