I have the below macro that works perfectly fine for my time zone, however it is used in another time zone as well that is 13 hours ahead of me. Anyway to account for this? or an if/else condition to run a different code depending on the now time?
'This part of the macro will use system time to determine the day and run a different version of the macro depending on the result
If Weekday(Now()) = vbFriday Then
'Delete any row that has a cutoff date of further than 3 day from current time (Friday)
Last = Cells(Rows.Count, iDateColumn).End(xlUp).Row
For i = Last To 2 Step -1
If (Cells(i, iDateColumn).Value) > (Now + 3) Then
Cells(i, iDateColumn).EntireRow.Delete
End If
Next
Else
'Delete any row that has a cutoff date of further than 1 day from current time (Mon-Thurs)
Last = Cells(Rows.Count, iDateColumn).End(xlUp).Row
For i = Last To 2 Step -1
If (Cells(i, iDateColumn).Value) > (Now + 1) Then
Cells(i, iDateColumn).EntireRow.Delete
End If
Next
End If