Lulu65
New Member
Hello everyone,
I have on a worksheet (named "Stock out BS") a table like this (table lenght is undefined):
Category ID Description Prize
"A BS" "123" "aaaaaa" "10"
"B BS" "124" "bbbbb" "20"
"A BS" "125" "cccccc" "8"
"A BS" "126" "ddddd" "9"
"C BS" "127" "eeeeee" "11"
Then I have on a worksheet (named "Stock out TA") another table like this (table lenght is undefined):
Category ID Description Prize
"A TA" "223" "aaaaaaz" "101"
"B TA" "224" "bbbbbz" "201"
"C TA" "225" "ccccccz" "81"
I need to copy (ID, Description and Price) in another worksheet (named "Scale") starting from cell A2 the list of element from the previous 2 tables having Category=Ax
starting from cell G2 the list of element from the previous 2 tables having Category=Bx
starting from cell M2 the list of element from the previous 2 tables having Category=Cx
Each list should be ordered by Price.
Resulting table
Category A (cell A2)
"A TA" "223" "aaaaaaz" "101"
"A BS" "123" "aaaaaa" "10"
"A BS" "126" "ddddd" "9"
"A BS" "125" "cccccc" "8"
Category B (cell G2)
"B TA" "224" "bbbbbz" "201"
"B BS" "124" "bbbbb" "20"
Category C (cell M2)
"C TA" "225" "ccccccz" "81"
"C BS" "127" "eeeeee" "11"
I'm new with VBA and I need to solve this item asap.
Hope someone can help me
Thanks a lot
I have on a worksheet (named "Stock out BS") a table like this (table lenght is undefined):
Category ID Description Prize
"A BS" "123" "aaaaaa" "10"
"B BS" "124" "bbbbb" "20"
"A BS" "125" "cccccc" "8"
"A BS" "126" "ddddd" "9"
"C BS" "127" "eeeeee" "11"
Then I have on a worksheet (named "Stock out TA") another table like this (table lenght is undefined):
Category ID Description Prize
"A TA" "223" "aaaaaaz" "101"
"B TA" "224" "bbbbbz" "201"
"C TA" "225" "ccccccz" "81"
I need to copy (ID, Description and Price) in another worksheet (named "Scale") starting from cell A2 the list of element from the previous 2 tables having Category=Ax
starting from cell G2 the list of element from the previous 2 tables having Category=Bx
starting from cell M2 the list of element from the previous 2 tables having Category=Cx
Each list should be ordered by Price.
Resulting table
Category A (cell A2)
"A TA" "223" "aaaaaaz" "101"
"A BS" "123" "aaaaaa" "10"
"A BS" "126" "ddddd" "9"
"A BS" "125" "cccccc" "8"
Category B (cell G2)
"B TA" "224" "bbbbbz" "201"
"B BS" "124" "bbbbb" "20"
Category C (cell M2)
"C TA" "225" "ccccccz" "81"
"C BS" "127" "eeeeee" "11"
I'm new with VBA and I need to solve this item asap.
Hope someone can help me
Thanks a lot