Hi,
I have invoice due dates in column B, what I want to happen is for excel to collect for me information in column A of the invoices to mature in 15 days from todays date. I have found this code in one of excel sites, but don't know how to make it work the way I want, can somebody assists once more....
Thanks,
I have invoice due dates in column B, what I want to happen is for excel to collect for me information in column A of the invoices to mature in 15 days from todays date. I have found this code in one of excel sites, but don't know how to make it work the way I want, can somebody assists once more....
Thanks,
Code:
Dim Mycell
Private Sub Workbook_Open()
Dim Rng
Dim strText As String
Set Rng = Sheets("Sheet1").Range("B1:B25")
For Each Mycell In Rng
If Mycell.Value < Date Then
strText = strText & vbLf & Mycell.Offset(0, -1).Value & " - " & Date - Mycell.Value & " Days"
End If
Next Mycell
If Len(strText) > 0 Then
MsgBox strText & vbLf & "Are Overdue. Take Action Now! ", vbOKOnly Or vbExclamation, "Tasks Overdue"
End If
End Sub