Y
Yee
I currently have a mini marco that clears the contents of
a specific cell if a relative cell contains a specific
value. This is the macro:
With ActiveSheet
If Range("A2") = "Hello" Then
Range("A1").ClearContents
End If
End With
End Sub
How could I re write the macro so that any cell in Row 2
that contains "Hello" would have the relative cell in Row
1 cleared?
For example, if cell A2 contains "Hello", then cell A1
could be cleared. If B2 contains "Hello", cell B1 would
be cleared.....Hope you understand what I mean...Many
thanks.
a specific cell if a relative cell contains a specific
value. This is the macro:
With ActiveSheet
If Range("A2") = "Hello" Then
Range("A1").ClearContents
End If
End With
End Sub
How could I re write the macro so that any cell in Row 2
that contains "Hello" would have the relative cell in Row
1 cleared?
For example, if cell A2 contains "Hello", then cell A1
could be cleared. If B2 contains "Hello", cell B1 would
be cleared.....Hope you understand what I mean...Many
thanks.