Hi there,
I hope you are all well.
I have a workbook with 2 sheets, 1st one named as "In Process" and the other one "Completed".
The "In Process" sheet there's a table with examples of invoices not paid and still in process. The "Complete" is all the invoices already paid.
I have a code that one of you helped me a lot. That code copies automatically on the Worksheet_Change event the paid invoices from "In Process" to "Completed" based on the value of row F which is the status ("paid"; "not paid"). If the user selects "Yes" on from the F column, it will copy to the "Completed" sheet without deleting it from "In Process".
The code is this one:
I now need to copy not all row but only some cells. As you can see on the attached example, the order of the headers on "In Process" sheet is not the same as the "Completed" and I need to copy only the common headers.Please Login or Register to view this content.
Let's say. on "In Process" sheet, the header "Date" is within the G column and on "Completed" is on C Column.
I need a peace of code that will copy the common headers to the right place and, if possible, I need the CopyContents as to not mess with the formatting (My original file is formatted with different colors).
If possible, as the Invoices are an unique number, is is possible to avoid duplication? e.g. A user by mistake changes to paid 2 times on the same invoice.
You assistance on this matter will be highly appreciated.
Best regards,
Filipe
Bookmarks