Hi all, I would like to write a macro so that when i run it, to appears a message box with text ("Please Enter Group's Code"), and when i enter the group's code, automatically lookup through column "A" and marks the debtors' names whose are belong the code and also it's transactions in column "C" which contains text or numbers in column "B". The debtors groups are in another excel sheet in the following bath: c:/my documents/Groups. (Sheet Groups). In this sheet the debtors' names are in col. "A" and its' codes in col. "B". Note that the database sheet contains more than 35000 rows and the groups are more than 40 different codes. Please see below extracts spreadsheets for what i requested. Ignore any borders of the below spreadsheets. Any help or advice would be great appreciated. Best regards.
<tbody>
</tbody>
<tbody>
</tbody>
<tbody>
</tbody>
F.1. | |||||
A | B | C | D | E | |
1 | |||||
2 | Date | Reference | Debit | Credit | |
3 | |||||
4 | ABCD LTD | ||||
5 | |||||
6 | 13/03/2014 | INV-7890 | 1.499,40 | 0,00 | |
7 | 19/03/2014 | CNN-3487 | -1.499,40 | 0,00 | |
8 | |||||
9 | Totals | 0,00 | 0,00 | ||
10 | |||||
11 | EFGH LTD | ||||
12 | |||||
13 | 01/08/2008 | REC-2567 | 0,00 | 948,75 | |
14 | 20/08/2008 | INV-8095 | 6.325,00 | 0,00 | |
15 | 26/08/2008 | REC-2675 | 0,00 | 6.325,00 | |
16 | |||||
17 | Totals | 6.325,00 | 7.273,75 | ||
18 | |||||
19 | IJKLM LTD | ||||
20 | |||||
21 | 20/05/2013 | REC-2750 | 0,00 | 619,50 | |
22 | 23/12/2013 | INV-8128 | 929,25 | 0,00 | |
23 | 31/12/2013 | REC-2880 | 0,00 | 929,25 | |
24 | |||||
25 | Totals | 929,25 | 1.548,75 |
<tbody>
</tbody>
F.2. | |||||
A | B | C | D | E | |
1 | Date | Reference | Debit | Credit | |
2 | |||||
3 | ABCD LTD | 10 | |||
4 | |||||
5 | 13/03/2014 | INV-7890 | 10 | 1.499,40 | 0,00 |
6 | 19/03/2014 | CNN-3487 | 10 | -1.499,40 | 0,00 |
7 | |||||
8 | Totals | 0,00 | 0,00 | ||
9 | |||||
10 | EFGH LTD | 10 | |||
11 | |||||
12 | 01/08/2008 | REC-2567 | 10 | 0,00 | 948,75 |
13 | 20/08/2008 | INV-8095 | 10 | 6.325,00 | 0,00 |
14 | 26/08/2008 | REC-2675 | 10 | 0,00 | 6.325,00 |
15 | |||||
16 | Totals | 6.325,00 | 7.273,75 | ||
17 | |||||
18 | IJKLM LTD | 10 | |||
19 | |||||
20 | 20/05/2013 | REC-2750 | 10 | 0,00 | 619,50 |
21 | 23/12/2013 | INV-8128 | 10 | 929,25 | 0,00 |
22 | 31/12/2013 | REC-2880 | 10 | 0,00 | 929,25 |
23 | |||||
24 | Totals | 929,25 | 1.548,75 | ||
25 |
<tbody>
</tbody>
F.3. | ||
A | B | |
1 | Debtor's Name | Code |
2 | ABCD LTD | 10 |
3 | EFGH LTD | 10 |
4 | IJKLM LTD | 10 |
<tbody>
</tbody>