Hello everyone!
I need help with the following scenario.
I have the following sales invoice format in one sheet ("Sheet1") where I record my sale of items and the data get posted in another sheet ("Sheet2").
Invoice format.jpg
Lets say I have made 10 number of sales so far and the item details are recorded in Sheet2 as shown in the picture below:
Sales.jpg
Now based on the invoice number I want to pull the item records (Item name and their quantity) from Sheet2 back into the invoice format sheet ("Sheet1") in their designated place.
As shown in the second picture, for Invoice no. 1, for example, I have sold Items 2, 3 and 10 and based on the invoice number I want the sales invoice format ("Sheet1") to populate only the items that I had sold for that particular invoice number as shown in the picture below:
Result.jpg
How do I do this in VBA?
Bookmarks