#1
|
|||
|
|||
Need Help with vlookup r1c1 formula in VBA
I need a specific range as my vlookup range on a sheet called "Merchant List". I don't want the R1C1 reference that excel uses when creating the r1c1 formula. My code is below. When I try it I am getting an error. I want the reference cell to be from Column 3, but the lookup table to be "C3:H1000" on the "Merchant List" sheet. Please advise what is wrong with my code and how I can fix it. Thanks:
Dim Rng99 as range Sheets("Merchant List").select range("C3:H1000").Select Set Rng99 = Selection Sheets("Transact Revenue").Select range(endmerchant).Select ActiveCell.Offset(0, -2).Select ActiveCell.FormulaR1C1 = _ "=VLOOKUP(RC3,'Merchant List'!" & Rng99.Address & ",3,False)" Thank you, J |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Vlookup formula | teza2k06 | Excel | 2 | 03-18-2014 01:21 PM |
IF + VLOOKUP formula help | skyline255 | Excel | 0 | 09-19-2012 05:05 PM |
Help with VLOOKUP formula | pattyr | Excel | 6 | 08-20-2012 02:20 AM |
how to read R1C1 formula | Suhanti | Excel | 2 | 10-16-2010 11:30 AM |
Need Help With SUMIF Formula In R1C1 Style | Todd | Excel | 9 | 02-27-2010 08:30 PM |