Hi All,
I have a problem which i am hoping someone can help me solve using VBA, I have a table that looks like this:
[TABLE="width: 399"]
<tbody>[TR]
[TD]Group No. (Key)[/TD]
[TD]Material[/TD]
[/TR]
[TR]
[TD]9400028741[/TD]
[TD]600-1014:TELSPEC[/TD]
[/TR]
[TR]
[TD]9400028741[/TD]
[TD]597/29:TELSPEC[/TD]
[/TR]
[TR]
[TD]9400030162[/TD]
[TD]BFD328507:ERICSSON[/TD]
[/TR]
[TR]
[TD]9400030162[/TD]
[TD]BFD328507/11:ERICSSON[/TD]
[/TR]
[TR]
[TD]9400030162[/TD]
[TD]BMS 404 030/2:EMERSONRGY[/TD]
[/TR]
[TR]
[TD]9400030162[/TD]
[TD]INV-1000VA RM:CODECOM[/TD]
[/TR]
[TR]
[TD]11GHZODU[/TD]
[TD]GE9234:SIAE[/TD]
[/TR]
[TR]
[TD]11GHZODU[/TD]
[TD]GE9348:SIAE[/TD]
[/TR]
[TR]
[TD]12647I[/TD]
[TD]Q9662A:NEC[/TD]
[/TR]
[TR]
[TD]12647I[/TD]
[TD]Q9662B:NEC[/TD]
[/TR]
[TR]
[TD]12647I[/TD]
[TD]Q9668A:NEC[/TD]
[/TR]
[TR]
[TD]12647I[/TD]
[TD]Q9668B:NEC[/TD]
[/TR]
</tbody>[/TABLE]
What i need is to be able to enter a list of materials (from different groups) and then have an output of all the materials that belong to the group for which the materials i entered to begin with belong to.
So if i entered the following materials in A1-A3:
BFD328507:ERICSSON
Q9668B:NEC
GE9234:SIAE
Then the output would be:
BFD328507:ERICSSON
BFD328507/11:ERICSSON
BMS 404 030/2:EMERSONRGY
INV-1000VA RM:CODECOM
Q9668B:NEC
Q9668A:NEC
Q9662B:NEC
Q9662A:NEC
GE9234:SIAE
GE9348:SIAE
Hopefully this makes sense, thanks in advance!
I have a problem which i am hoping someone can help me solve using VBA, I have a table that looks like this:
[TABLE="width: 399"]
<tbody>[TR]
[TD]Group No. (Key)[/TD]
[TD]Material[/TD]
[/TR]
[TR]
[TD]9400028741[/TD]
[TD]600-1014:TELSPEC[/TD]
[/TR]
[TR]
[TD]9400028741[/TD]
[TD]597/29:TELSPEC[/TD]
[/TR]
[TR]
[TD]9400030162[/TD]
[TD]BFD328507:ERICSSON[/TD]
[/TR]
[TR]
[TD]9400030162[/TD]
[TD]BFD328507/11:ERICSSON[/TD]
[/TR]
[TR]
[TD]9400030162[/TD]
[TD]BMS 404 030/2:EMERSONRGY[/TD]
[/TR]
[TR]
[TD]9400030162[/TD]
[TD]INV-1000VA RM:CODECOM[/TD]
[/TR]
[TR]
[TD]11GHZODU[/TD]
[TD]GE9234:SIAE[/TD]
[/TR]
[TR]
[TD]11GHZODU[/TD]
[TD]GE9348:SIAE[/TD]
[/TR]
[TR]
[TD]12647I[/TD]
[TD]Q9662A:NEC[/TD]
[/TR]
[TR]
[TD]12647I[/TD]
[TD]Q9662B:NEC[/TD]
[/TR]
[TR]
[TD]12647I[/TD]
[TD]Q9668A:NEC[/TD]
[/TR]
[TR]
[TD]12647I[/TD]
[TD]Q9668B:NEC[/TD]
[/TR]
</tbody>[/TABLE]
What i need is to be able to enter a list of materials (from different groups) and then have an output of all the materials that belong to the group for which the materials i entered to begin with belong to.
So if i entered the following materials in A1-A3:
BFD328507:ERICSSON
Q9668B:NEC
GE9234:SIAE
Then the output would be:
BFD328507:ERICSSON
BFD328507/11:ERICSSON
BMS 404 030/2:EMERSONRGY
INV-1000VA RM:CODECOM
Q9668B:NEC
Q9668A:NEC
Q9662B:NEC
Q9662A:NEC
GE9234:SIAE
GE9348:SIAE
Hopefully this makes sense, thanks in advance!