SteveOranjinSteve
Board Regular
- Joined
- Nov 18, 2019
- Messages
- 78
- Office Version
- 365
- 2019
- Platform
- Windows
Hello,
I'm a fairly rudimentary VBA user. I'm trying to get something working in a tutorial so I can start doing some vlookups through VBA on my own, but I need an example I can work from. My guess is that in order for a successful table to be populated, we have to write some kind of loop that allows the vlookup to loop through the lookup table and return it (in the "return table".) So far all I've got is the actual VLOOKUP working, I don't know how to institute two different loops @ the same time, so that it'll loop through the one table, and then loop through the other table, return the result, and then go back to the other table and grab the next result. Can someone show me the code that would be required to do this? The link for the sheet is here.
I'm a fairly rudimentary VBA user. I'm trying to get something working in a tutorial so I can start doing some vlookups through VBA on my own, but I need an example I can work from. My guess is that in order for a successful table to be populated, we have to write some kind of loop that allows the vlookup to loop through the lookup table and return it (in the "return table".) So far all I've got is the actual VLOOKUP working, I don't know how to institute two different loops @ the same time, so that it'll loop through the one table, and then loop through the other table, return the result, and then go back to the other table and grab the next result. Can someone show me the code that would be required to do this? The link for the sheet is here.
VBA Code:
https://1drv.ms/x/s!AuLIQSvmFBoEngRYVzrkMYNwf1tZ