msquared99
Member
I am working on some code where I identify a workbook as "wbo" by way of GetOpenFileName.
Set wba = Workbooks.Open(fName1)
I am trying to do a VLOOKUP like this:
Range("O2:O15").FormulaR1C1 = "=VLOOKUP(RC[-1],wbo R2C15:R150C15, 1, 0)"
How do I reference wbo in the formula?
Thanks.
Set wba = Workbooks.Open(fName1)
I am trying to do a VLOOKUP like this:
Range("O2:O15").FormulaR1C1 = "=VLOOKUP(RC[-1],wbo R2C15:R150C15, 1, 0)"
How do I reference wbo in the formula?
Thanks.