Hello excelforum users,
I have following issue:
I make an example of an "invoice"-sheet. ONLY the cells what I want in there are been copied to my "invoicedatabase"-sheet.
2.jpg
5.jpg
I found an vba code to copy all the cells what I want from this "invoice"-sheet to my "invoicedatabase"-sheet. So far so good. This works...
But I don't know how to arranged that if I changed an allready made invoice (with my invoicenumber in cell H5) that it will copie this to my "invoicedatabase"-sheet in column A.?
So what I want that the vba code must do is the following:
- if this invoicenumber exist in this "invoicedatabase"-sheet....it search for this invoicenumber and overwrite allways the cells with the changes what is
made in my just changed "invoice"-sheet.
- after the cells are copied make sure that the invoicenumbers in the "invoicedatabase"-sheet will sort automatically the invoicenumbers (kolom A) and
the last invoice what is made stays allways at the top of the "invoicedatabase"-sheet. (sorting z to a)
e.g.: 2019DK124 (last made invoice)
2019DK123
2019DK122
2019DK121
2019DK120
etc...
Hopefully someone understand what I want to happen and can help me.
Bookmarks