Hello There,
I have 2 worksheets:
Header (Section, Total Quanity, Total Amount)
Lines (Section, Description, Quantity, Unit Price)
I would like to know the following how this can be achieved using VBA code.
1. The common column between 2 worksheets is Column 'Section'
2. For every Header row Section - value, it should get it's related Lines (from worksheet Lines) Totals - Quantity & Amount (Quantity * Unit Price)
I have attached the sampe workbook, with the VBA code, for your reference. The Total Quantiy part is working. However, I could not get the Total Amount working.
Eg.
Header
Lines
Thank you for your help.
Regards,
Don
I have 2 worksheets:
Header (Section, Total Quanity, Total Amount)
Lines (Section, Description, Quantity, Unit Price)
I would like to know the following how this can be achieved using VBA code.
1. The common column between 2 worksheets is Column 'Section'
2. For every Header row Section - value, it should get it's related Lines (from worksheet Lines) Totals - Quantity & Amount (Quantity * Unit Price)
I have attached the sampe workbook, with the VBA code, for your reference. The Total Quantiy part is working. However, I could not get the Total Amount working.
Eg.
Header
Section | Total Quantity | Total Amount |
A | 10 | 100 |
B | 20 | 200 |
C | 30 | 300 |
Lines
Section | Quantity | Unit Price |
A | 5 | 10 |
A | 5 | 10 |
B | 20 | 100 |
C | 10 | 20 |
C | 20 | 5 |
Thank you for your help.
Regards,
Don