Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 04-27-2015, 01:58 PM
jyfuller jyfuller is offline Need Help with vlookup r1c1 formula in VBA Windows 7 64bit Need Help with vlookup r1c1 formula in VBA Office 2007
Advanced Beginner
Need Help with vlookup r1c1 formula in VBA
 
Join Date: Jun 2012
Posts: 32
jyfuller is on a distinguished road
Default 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
Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
Need Help with vlookup r1c1 formula in VBA 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 vlookup r1c1 formula in VBA Need Help With SUMIF Formula In R1C1 Style Todd Excel 9 02-27-2010 08:30 PM

Other Forums: Access Forums

All times are GMT -7. The time now is 11:00 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft