Hello all,
I am pretty new at VBA programming. I just simplify the following table to show what needs to be done.
ROW LEVEL PART COST
1 1 a $2
2 2 b $1
3 3 f $3
4 4 g $8
5 2 o $2
6 3 x $2
7 2 c $5
8 2 r $5
Basically, level one is the top level and all part
underneath must roll into it(this is the easy part). The
problem I am having is when I want to roll up PART B(row
2), I want row(2,3,4) only or if I want PART O (row 5) I
want row(5,6).
I figure the logic is to test the level of the original
part to the next row and if its has a greater level then
add it if not stop but I am not sure which function to use
Please help.
I am pretty new at VBA programming. I just simplify the following table to show what needs to be done.
ROW LEVEL PART COST
1 1 a $2
2 2 b $1
3 3 f $3
4 4 g $8
5 2 o $2
6 3 x $2
7 2 c $5
8 2 r $5
Basically, level one is the top level and all part
underneath must roll into it(this is the easy part). The
problem I am having is when I want to roll up PART B(row
2), I want row(2,3,4) only or if I want PART O (row 5) I
want row(5,6).
I figure the logic is to test the level of the original
part to the next row and if its has a greater level then
add it if not stop but I am not sure which function to use
Please help.