This is my first time utilizing a IF ElseIF statement with vba. I am receiving a compile error message – reflecting that I have a syntax error. If someone could point out my errors, I would appreciate the feedback.
Thank you in advance
Sub CHECKBuy3()
Dim LR As Long, a As Long
Dim i As Long
Application.ScreenUpdating = False
Worksheets("BP-Proj ").Select
LR = Cells(Rows.Count, "G").End(xlUp).Row
For i = 7 To LR Step 2
IF Range("Q" & i ").value ="NO" and Range("S" & i ").Value = "Up Tick" THEN
Range("U" & i").Value = ""Buy""
Else
Range("U" & i").value = ""DO NOT Buy""
End If
End Sub
Thank you in advance
Sub CHECKBuy3()
Dim LR As Long, a As Long
Dim i As Long
Application.ScreenUpdating = False
Worksheets("BP-Proj ").Select
LR = Cells(Rows.Count, "G").End(xlUp).Row
For i = 7 To LR Step 2
IF Range("Q" & i ").value ="NO" and Range("S" & i ").Value = "Up Tick" THEN
Range("U" & i").Value = ""Buy""
Else
Range("U" & i").value = ""DO NOT Buy""
End If
End Sub