OK just see the TOTAL in lastrow for sh sheet doesn't repeat filling DATE,NAME,INVOICE NO , this is what I want it .
another thing after clear data and if I run the macro there is no data in SL sheet will continue copying to the bottom without data except ITEM and TOTAL row I don't need that as in WS sheet ,I don't want it . I want running the macro based on D3 is sheet name so I adjusted this line
if the D3 is empty then will not copy anything (because there is no sheet name to matching) and if I write wrong sheet name in D3 then will pops message "error sheet name".
Bookmarks