i need help on creating below macro, basically i can do the macro recorder for the auto filter for the date but then i got confuse on how to copy the inv2 and inv3 below the inv1 as in below example.
any advice or solution will be appreciate, thanks so much.
I have used some helper column to make the macro dynamic in Sheet 3, do not delete these columns . You have to just paste the data you want to format in the Sheet 1 and click on the format button it will do what you are looking for. I have tried to make the code as dynamic as possible . I could not test all the scenarios, you may want to do it. I have assumed that the inventory headings and product details will not be jumbled .
You should first try and run the code and see how the results looks like. Here is the file comparing the results my macro produced and the one you had given as expected. I do not see any difference unless my eyes are playing tricks with me.