jRyan2003
Board Regular
- Joined
- Aug 28, 2003
- Messages
- 83
OS=W2k
XL=2k
I'm having some trouble trying to figure this out. I have 2 workbooks. One has a large amount of data (approx 4500 rows). The other has names and id numbers. What I need to do is look at each name in the 2nd workbook and retrieve all the rows from the first workbook that match the id numbers associated with the name in the 2nd workbook and put it on a new sheet with that persons name on it.
Example:
Workbook1.xls has the following:
.......A........*........B.......*........C.......
5-5-03.........JS1518.........Phoenix
7-6-03.........JT1243.........Tucson
3-17-02.......KM1809........Dallas
10-23-02.....JT1243.........Los Angeles
9-9-03........JS1518.........Denver
Workbook2.xls has the following:
.......A.......*.........B.......
Tom............JT1243.......
Fred............JS1518.......
Tom............KM1809......
The macro/code should look at workbook2 and take JT1243 and find every occurance of it in Workbook1/column B and take each occurance and place it in a worksheet named Tom. By this example, Tom would have everything for JT1243 and KM1809. It should go through the entire list in Workbook2 until all of the entries have been copied from workbook1.
Hope this makes sense.... Any thoughts or tips on how to do this?
Thanks...
XL=2k
I'm having some trouble trying to figure this out. I have 2 workbooks. One has a large amount of data (approx 4500 rows). The other has names and id numbers. What I need to do is look at each name in the 2nd workbook and retrieve all the rows from the first workbook that match the id numbers associated with the name in the 2nd workbook and put it on a new sheet with that persons name on it.
Example:
Workbook1.xls has the following:
.......A........*........B.......*........C.......
5-5-03.........JS1518.........Phoenix
7-6-03.........JT1243.........Tucson
3-17-02.......KM1809........Dallas
10-23-02.....JT1243.........Los Angeles
9-9-03........JS1518.........Denver
Workbook2.xls has the following:
.......A.......*.........B.......
Tom............JT1243.......
Fred............JS1518.......
Tom............KM1809......
The macro/code should look at workbook2 and take JT1243 and find every occurance of it in Workbook1/column B and take each occurance and place it in a worksheet named Tom. By this example, Tom would have everything for JT1243 and KM1809. It should go through the entire list in Workbook2 until all of the entries have been copied from workbook1.
Hope this makes sense.... Any thoughts or tips on how to do this?
Thanks...