Hi everyone,
I want to call a Sub, if there is change in a certain cell. With the following code, this works as lang as there is something in the cell.
I want to call a Sub, if there is change in a certain cell. With the following code, this works as lang as there is something in the cell.
Code:
Private Sub Worksheet_Change(ByVal Target As Range)
If Target = Range("A1") Or Target = Range("A2") Then Call "Name of Sub"
End Sub
[CODE]
However, if there is nothing in the cell "A1" or "A2", I get a Problem. Anyone an idea, how to solve that?