Hello, I'm new here but I have used this forum quite a bit.
I currently have module that calls to the below code any time a cell is is changed in a sheet. It takes a little bit of time to execute the code, a fraction of a second maybe, which is too much for what I'm doing. Is there any way to make this happen quicker and more elegantly? I essentially need to check if X cell is equal to Y ranged list, else = ""
I currently have module that calls to the below code any time a cell is is changed in a sheet. It takes a little bit of time to execute the code, a fraction of a second maybe, which is too much for what I'm doing. Is there any way to make this happen quicker and more elegantly? I essentially need to check if X cell is equal to Y ranged list, else = ""
VBA Code:
Dim C As Range
With ActiveWorkbook.Worksheets("Exception")
For Each C In Range(ActiveWorkbook.Worksheets("Helper").Range("Q4"), ActiveWorkbook.Worksheets("Helper").Range("Q" & Rows.Count).End(xlUp))
If C.Value <> "" And .Range("E26") = C.Value Then
Exit For
Else
.Range("E36") = ""
End If
Next C
End With