Having trouble trying to figure out how to do 2 things with the following data with VBA:
1-separate by NSN groupings (draw border above & below grouping from A to Z columns)
2-separate by LOC (location) groupings (EVEN when blanks are present!) (draw border around that group of 'like locations')
The biggest concern is rows like the "WHEEL" where some locations are blank.
This is common, and in this case, I need it to draw a border above "RM11", then scroll downward until a new/different LOC is discovered.
Draw the other separator line/border there to keep the 'like' LOC line items grouped together for further validations. **Drawing a complete box border on all four sides of that group would be ideal, but if that's too hard, I'll settle for an above/below. (border would be around E4:E6)
A..........B..........C...............D...........E......
1Row...Code......NSN.......ITEM...........LOC.....PN....
----------------------------------------------------
2.........1..........258545...WING25.......FB66...12345
3.........2..........258545...WING75.......FB66...12345
4.........1..........258545...WHEEL25.....RM11...34567
5.........2..........258545...WHEEL50...............34567
6.........2..........258545...WHEEL75...............34567
7.........1..........258545...RADAR.........DS24...56789
8.........2..........258545...RADAR.........DS24...56789
------------------------------------------------------
9.........1..........121212...LIFT...........QV19...67891
------------------------------------------------------
10.......1..........771133...HANDLE.......QV19...99335
11.......2..........771133...HANDLE.......QV19...99335
12.......1..........771133...GUN............QV19...72341
13.......2..........771133...GUN............QV19...72341
------------------------------------------------------
End result
1 - the NSN separator lines would look like the above..
2 - the LOC separator lines would ideally border/BOX the following groupings:
.....E2:E3
.....E4:E6
.....E7:E8
.....E9:E13
Tried using macro generator to figure it out - but not sure how to create the logic to:
"Start with X location and continue down the column until a NEW/DIFFERENT location is discovered... once discovered, place a box/border around that grouping...(and include any blanks along the way (jump over them/ignore them) and assume they are part of that same grouping until a NEW/DIFFERENT location is found)
SO FRUSTRATED...
Thanks in advance for any help you can provide!
1-separate by NSN groupings (draw border above & below grouping from A to Z columns)
2-separate by LOC (location) groupings (EVEN when blanks are present!) (draw border around that group of 'like locations')
The biggest concern is rows like the "WHEEL" where some locations are blank.
This is common, and in this case, I need it to draw a border above "RM11", then scroll downward until a new/different LOC is discovered.
Draw the other separator line/border there to keep the 'like' LOC line items grouped together for further validations. **Drawing a complete box border on all four sides of that group would be ideal, but if that's too hard, I'll settle for an above/below. (border would be around E4:E6)
A..........B..........C...............D...........E......
1Row...Code......NSN.......ITEM...........LOC.....PN....
----------------------------------------------------
2.........1..........258545...WING25.......FB66...12345
3.........2..........258545...WING75.......FB66...12345
4.........1..........258545...WHEEL25.....RM11...34567
5.........2..........258545...WHEEL50...............34567
6.........2..........258545...WHEEL75...............34567
7.........1..........258545...RADAR.........DS24...56789
8.........2..........258545...RADAR.........DS24...56789
------------------------------------------------------
9.........1..........121212...LIFT...........QV19...67891
------------------------------------------------------
10.......1..........771133...HANDLE.......QV19...99335
11.......2..........771133...HANDLE.......QV19...99335
12.......1..........771133...GUN............QV19...72341
13.......2..........771133...GUN............QV19...72341
------------------------------------------------------
End result
1 - the NSN separator lines would look like the above..
2 - the LOC separator lines would ideally border/BOX the following groupings:
.....E2:E3
.....E4:E6
.....E7:E8
.....E9:E13
Tried using macro generator to figure it out - but not sure how to create the logic to:
"Start with X location and continue down the column until a NEW/DIFFERENT location is discovered... once discovered, place a box/border around that grouping...(and include any blanks along the way (jump over them/ignore them) and assume they are part of that same grouping until a NEW/DIFFERENT location is found)
SO FRUSTRATED...
Thanks in advance for any help you can provide!