Hey all,
First.. I hope I've put this thread in the right topic.. Wasn't quite sure where to put this one since it applies to Excel, databases and most likely VBA..
I've been looking for an answer for this for a long while.. I always seem to find a way around actually having to do it.. but, I don't think I can find a way around it this time..
Ok, here's my problem. I have 17,000 line items in an Excel spreadsheet. Each line is a particular part in a system that we've shipped to customers. For each line item, I need to pull data from a massive Oracle db in the sky that contains information specific to each part and put it in the correct column of each line item.
Example:
Part# Type Color
1234 ? ?
2341 ? ?
3412 ? ?
So, for example.. Ideally, I'd like to take the part number from the spreadsheet, query the db and then return the results for Type and Color to the spreadsheet.
I assume this can be done with VBA somehow, but I'm not even sure where to start. I'm pretty handy with VBA.. I can query the db from excel using Access or MS Query via ODBC.. but as far as how tie the two together in order to query the DB for numerous cells in a range using VBA, I haven't got a clue!
I've been all over Google hunting for the answer and have come close.. but not close enough..
Please lend me some knowledge!
Oh, and I'm using Excel 2007..
Thanks!
Bookmarks