Hi, i found this and applied:
Private Sub Worksheet_Activate()
If Range("S2") <> Range("A2").Value Then
Range("S2") = Range("A2").Value
Range("d2:g2").ClearContents
End If
End sub
Where S2 is the cell that depends on another cell on other sheet (which means when S2 changes, d2:g2 clears). By A2 i did "A2 always same like S2".
This works, however my range is now always cleared everytime i click on another sheet (not only when cell S2 changes).
I'm a beginner and would appreciate so much help. Thanks!
Private Sub Worksheet_Activate()
If Range("S2") <> Range("A2").Value Then
Range("S2") = Range("A2").Value
Range("d2:g2").ClearContents
End If
End sub
Where S2 is the cell that depends on another cell on other sheet (which means when S2 changes, d2:g2 clears). By A2 i did "A2 always same like S2".
This works, however my range is now always cleared everytime i click on another sheet (not only when cell S2 changes).
I'm a beginner and would appreciate so much help. Thanks!