I'm trying to automatically start a macro based on the value entered into a cell. I was able to do it for one cell but how can I apply it to a range, example from L1 to L600?
Here is the code that works for 1 cell:
Sub Worksheet_Change(ByVal Target As Range)
Dim CAD As String
CAD = "Canadians (CDN)"
If Intersect(Target, Range("L14")) Is Nothing Then Exit Sub
Application.EnableEvents = False 'to prevent endless loop
If Range("L14").Value = CAD Then
Range("M14") = 1
End If
Application.EnableEvents = True
End Sub
Basically I have to check the next cell L15 and enter a value in M15 if the condition is met and so on....