Hi Dany- Sorry this took so long, yours is one of several active projects. I looked at the problem and decided to add a formula to the DATE column (AQ) which reads PAID or UNPAID (= column I). Then I wrote a subroutine AddTimeStamp that searches that column, changes cells reading PAID to the current Date, and fills in the Time and Days Elapsed columns. AddTimeStamp is triggered by the Worksheet_Calculation event, which "fires" whenever any input to any formula on the 'AUTOMATED INVOICE' worksheet is changed.
The Workbook_BeforeSave event also triggers AddTimeStamp, first adding the PAID/UNPAID formula to any blank cells in AQ to keep it synchronized with column I.
Please click the Add Reputation star below any helpful posts, and if you have your answer, mark your thread as SOLVED (Thread Tools up top). Thanks!-Lee
Bookmarks