I have a macro I have written that works with the data in the first row of my worksheet. I need the macro to run on that rows data and then repeat itself using the next row's data. So it works in row 2 as written but I need it to run in row 2 and then repeat to row 3 and so on to the end of my sheet. Is this possible and if so how?
Sub DataCheck2()
If Range("J2").Value = "Time to call" Then Call FinalEmail2
End Sub
Sub FinalEmail2()
Dim emailApplication As Object
Dim emailItem As Object
Set emailApplication = CreateObject("Outlook.Application")
Set emailItem = emailApplication.CreateItem(0)
emailItem.to = "troy_hardin@zeeco.com"
emailItem.Subject = "Tickler File Alert"
emailItem.Body = "Contact" & " " & Range("A2") & " " & Range("B2") & " " & "about their" & " " & Range("C2").Value
emailItem.display
Set emailItem = Nothing
Set emailApplication = Nothing
End Sub
Sub DataCheck2()
If Range("J2").Value = "Time to call" Then Call FinalEmail2
End Sub
Sub FinalEmail2()
Dim emailApplication As Object
Dim emailItem As Object
Set emailApplication = CreateObject("Outlook.Application")
Set emailItem = emailApplication.CreateItem(0)
emailItem.to = "troy_hardin@zeeco.com"
emailItem.Subject = "Tickler File Alert"
emailItem.Body = "Contact" & " " & Range("A2") & " " & Range("B2") & " " & "about their" & " " & Range("C2").Value
emailItem.display
Set emailItem = Nothing
Set emailApplication = Nothing
End Sub