Hello
I want matching names in column B for CUSTOMERS sheets with sheets names have already created and copy data from CUSTOMERS sheets, but without repeat , just replace new copied data when run the macro every time with old data have already copied and ignore column name for each sheet because I have sheet name.
expected output
I want matching names in column B for CUSTOMERS sheets with sheets names have already created and copy data from CUSTOMERS sheets, but without repeat , just replace new copied data when run the macro every time with old data have already copied and ignore column name for each sheet because I have sheet name.
SHEETS.xlsm | ||||||||
---|---|---|---|---|---|---|---|---|
A | B | C | D | E | F | |||
1 | DATE | NAME | ORDER NO | CONDITION | DEBIT | CREDIT | ||
2 | 06/02/2023 | ALAA-1 | ORD-001 | N/H | 20,000.00 | |||
3 | 06/02/2023 | ALAA-1 | ORD-002 | M/H | 20,000.00 | 1,000.00 | ||
4 | 06/02/2023 | ALAA-2 | ORD-003 | MM/N | 10,000.00 | |||
5 | 06/02/2023 | ALAA-1 | ORD-004 | B/N | 2,000.00 | 100.00 | ||
6 | 06/02/2023 | ALAA-1 | ORD-004 | B/NN | 100.00 | |||
7 | 06/02/2023 | ALAA-2 | ORD-005 | T/R | 1,000.00 | |||
8 | 06/02/2023 | ALAA-3 | ORD-006 | MNG | 1,200.00 | |||
9 | 06/02/2023 | ALAA-2 | ORD-007 | ITSR | 1,200.00 | 150.00 | ||
10 | 06/02/2023 | ALAA-2 | ORD-007 | ITSRI | 200.00 | 100.00 | ||
11 | 06/02/2023 | ALAA-3 | ORD-008 | ITRE | 200.00 | |||
12 | 06/02/2023 | ALAA-3 | ORD-009 | ITRE | 100.00 | |||
13 | 06/02/2023 | ALAA-3 | ORD-010 | ITRE | 100.00 | |||
14 | 06/02/2023 | ALAA-3 | ORD-011 | ITRE | 1,000.00 | |||
15 | 06/02/2023 | ALAA-3 | ORD-012 | ITRE | 1,200.00 | |||
16 | 06/02/2023 | ALAA-3 | ORD-013 | ITRE | 200.00 | |||
17 | 06/02/2023 | ALAA-3 | ORD-014 | ITRE | 100.00 | 50.00 | ||
CUSTOMERS |
SHEETS.xlsm | |||||||
---|---|---|---|---|---|---|---|
A | B | C | D | E | |||
1 | DATE | ORDER NO | CONDITION | DEBIT | CREDIT | ||
2 | |||||||
3 | |||||||
4 | |||||||
5 | |||||||
6 | |||||||
7 | |||||||
8 | |||||||
9 | |||||||
10 | |||||||
11 | |||||||
12 | |||||||
13 | |||||||
14 | |||||||
15 | |||||||
16 | |||||||
17 | |||||||
ALAA-1 |
SHEETS.xlsm | |||||||
---|---|---|---|---|---|---|---|
A | B | C | D | E | |||
1 | DATE | ORDER NO | CONDITION | DEBIT | CREDIT | ||
2 | |||||||
3 | |||||||
4 | |||||||
5 | |||||||
6 | |||||||
7 | |||||||
8 | |||||||
9 | |||||||
10 | |||||||
11 | |||||||
12 | |||||||
13 | |||||||
14 | |||||||
15 | |||||||
16 | |||||||
17 | |||||||
ALAA-2 |
expected output
SHEETS.xlsm | |||||||
---|---|---|---|---|---|---|---|
A | B | C | D | E | |||
1 | DATE | ORDER NO | CONDITION | DEBIT | CREDIT | ||
2 | 06/02/2023 | ORD-001 | N/H | 20,000.00 | |||
3 | 06/02/2023 | ORD-002 | M/H | 20,000.00 | 1,000.00 | ||
4 | 06/02/2023 | ORD-004 | B/N | 2,000.00 | 100.00 | ||
5 | 06/02/2023 | ORD-004 | B/NN | 100.00 | |||
6 | |||||||
7 | |||||||
8 | |||||||
9 | |||||||
10 | |||||||
11 | |||||||
12 | |||||||
13 | |||||||
14 | |||||||
15 | |||||||
16 | |||||||
17 | |||||||
ALAA-1 |
SHEETS.xlsm | |||||||
---|---|---|---|---|---|---|---|
A | B | C | D | E | |||
1 | DATE | ORDER NO | CONDITION | DEBIT | CREDIT | ||
2 | 06/02/2023 | ORD-003 | MM/N | 10,000.00 | |||
3 | 06/02/2023 | ORD-005 | T/R | 1,000.00 | |||
4 | 06/02/2023 | ORD-007 | ITSR | 1,200.00 | 150.00 | ||
5 | 06/02/2023 | ORD-007 | ITSRI | 200.00 | 100.00 | ||
6 | |||||||
7 | |||||||
8 | |||||||
9 | |||||||
10 | |||||||
11 | |||||||
12 | |||||||
13 | |||||||
14 | |||||||
15 | |||||||
16 | |||||||
17 | |||||||
ALAA-2 |