Have an Excel 2003 workbook containing multiple sheets;
“ProjectedVolumes”
“ProductLines”
“Supplier1”
“Supplier2”
“Supplier3”
and so on
“SummaryByLine”
“ProjectedVolumes”
A B C D E
ProductLine Year1 Year2 Year3 Year4
Code1 X X X X
Code2 X X X X
Code3 X X X X
“Supplier1”
A B C D E
ProductLine QtyPer UnitCost BxC Value
Code1 X X X
Code2 X X X
Code3 X X X
A B C D E
ProductLine Year1 Year2 Year3 Year4
Supplier1
Supplier2
Supplier3
What I would like to do is set up a command button to “Calculate” by Supplier the
“Value” of each code and to copy that value into the “SummaryByLine” sheet
after the user has entered details in the areas marked with an X.
I know that I need to loop through the ProductLine columns for each supplier in
the “Supplier” sheets, then get the “ProjectedVolume”, then perform the calculation.
Whilst I understand the logic of what I’m attempting my VBA skills are so poor that I’m not making any real headway.
“ProjectedVolumes”
“ProductLines”
“Supplier1”
“Supplier2”
“Supplier3”
and so on
“SummaryByLine”
“ProjectedVolumes”
A B C D E
ProductLine Year1 Year2 Year3 Year4
Code1 X X X X
Code2 X X X X
Code3 X X X X
“Supplier1”
A B C D E
ProductLine QtyPer UnitCost BxC Value
Code1 X X X
Code2 X X X
Code3 X X X
A B C D E
ProductLine Year1 Year2 Year3 Year4
Supplier1
Supplier2
Supplier3
What I would like to do is set up a command button to “Calculate” by Supplier the
“Value” of each code and to copy that value into the “SummaryByLine” sheet
after the user has entered details in the areas marked with an X.
I know that I need to loop through the ProductLine columns for each supplier in
the “Supplier” sheets, then get the “ProjectedVolume”, then perform the calculation.
Whilst I understand the logic of what I’m attempting my VBA skills are so poor that I’m not making any real headway.