JenniferMurphy
Well-known Member
- Joined
- Jul 23, 2011
- Messages
- 2,532
- Office Version
- 365
- Platform
- Windows
Suppose I have a VBA array (n,2) something like this, but in a VBA variable, not a sheet range.
Is there something in VBA like XLookup in Excel that will do this, but with a VBA array?
I know I can do it in a loop. Since the table is small, that's probably OK. I just wondered if there is something better. Thanks
Is there something in VBA like XLookup in Excel that will do this, but with a VBA array?
Cell Formulas | ||
---|---|---|
Range | Formula | |
S5:S7 | S5 | =XLOOKUP(R5,$P$5:$P$9,$Q$5:$Q$9) |
I know I can do it in a loop. Since the table is small, that's probably OK. I just wondered if there is something better. Thanks