Hi there,
If have the following issue which I keeps me awake the last days:
I have a in table form a Bill of Material (BOM) that consists out of 7 different headers, one of them is called "Part Number". in this header parts are numbered or named. These numbers (i.e. -1, -10, -13 ) can appear on the bottum of the table in the columns with the header "QTY"
I am searching for a vba code that goes through each number in the column "Part number" and search for this value in the columns with the header "QTY". If there is a match an "X" should be placed in the intersected cell.
Main issue: the amount of "QTY" columns differs, so in this example there are 4 QTY columns, but in other BOMs there might be more or less columns. As a result of this, the column Letter (this case Cell E1) of "Part Number" also varies.
If necesary I can change the header QTY by for example: QTY1 QTY2 QTY3 etc, to distinguish the QTY Columns.
Is there any way of how to approach my issue?
Thank you in advance,
Cheers Paul
See example below:
Old:
[TABLE="class: grid, width: 500, align: center"]
QTY
QTY
QTY
QTY
Part Number
-1
1
-10
1
-11
2
1
-13
1
-20
4
-50
3
Rivet
6
Screw
-13
-11
-10
-1
(empty cell)
[/TABLE]
NEW:
[TABLE="class: grid, width: 500, align: center"]
QTY
QTY
QTY
QTY
Part Number
X
-1
X
1
-10
X
1
-11
X
2
1
-13
1
-20
4
-50
3
Rivet
6
Screw
-13
-11
-10
-1
(empty cell)
[/TABLE]