If Trim(CStr(Worksheets("Main Sheet").Cells(RowID, 19).Value)) <> "" Then
i_Day = Now() - Worksheets("Main Sheet").Cells(RowID, 19).Value
while Worksheets("Main Sheet").Cells(RowID, 19).Value is having value 30/04/2021. What is the reason of this?
Open in new window
resolves to a2:a0 which is invalid.