Hi, my team has a spreadsheet of projects that we use to track status. I've created a macro, but it has errors because I'm very new to VBA. The macro needs to change the status of a project when a date becomes 7 days old or older.
Created Date is in Column B
Status is in Column C
This is the code I have so far. Can someone please help?
Created Date is in Column B
Status is in Column C
This is the code I have so far. Can someone please help?
Code:
Sub Worksheet_DateChange()
'This macro will review the dates in column B and the New Projects in column C and if the date is 7 days old or older, then "New Project" (status) will change to "On Track" (status).
If Range("B2:B500").Value = TODAY() - 7 And Range("C2:C500").Value = "New Project" Then Range("C2:C500").Value = "On Track"
End If
End Sub