Hey everybody,
The goal is to clear the cell in column G if I put an x in J.
(I have another sheet where all workers are listed and it's supposed to show a worker as busy if he is mentioned in this sheet. Have problems with this one too, but thats for another day)
I've been working with the following code:
'** Change Cell Contens in column G if column J changes
If Not Intersect(Target, Range("J3:J100")) Is Nothing Then
Application.EnableEvents = False
Range("G3:G100").ClearContents
Application.EnableEvents = True
End If
End Sub
It works, but I have a problem.
If I make a change in any cell of column J it clears all cells in column G.
However I only want the clearing of a cell in G to happen in the specific row where the cell in J is changed. Not the whole column.
I hope this makes sense.
Thanks in advance!
The goal is to clear the cell in column G if I put an x in J.
(I have another sheet where all workers are listed and it's supposed to show a worker as busy if he is mentioned in this sheet. Have problems with this one too, but thats for another day)
I've been working with the following code:
'** Change Cell Contens in column G if column J changes
If Not Intersect(Target, Range("J3:J100")) Is Nothing Then
Application.EnableEvents = False
Range("G3:G100").ClearContents
Application.EnableEvents = True
End If
End Sub
It works, but I have a problem.
If I make a change in any cell of column J it clears all cells in column G.
However I only want the clearing of a cell in G to happen in the specific row where the cell in J is changed. Not the whole column.
I hope this makes sense.
Thanks in advance!