LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
JT JT is offline
external usenet poster
 
Posts: 234
Default vloopups

I am trying to code a vlookup in my macro and am not getting the desired
results. I want to use a variable (corrng) for the range name in the
vlookup. When I use the formula below, I get "#NAME?" as the result. Any
suggestions on how to use a variable would be appreciated.

ActiveCell.Offset(0, 24).FormulaR1C1 = "=VLOOKUP(RC[-22],(corrng),2,FALSE)"
--
JT
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
summing results of multiple vloopups dawnecia Excel Worksheet Functions 1 December 14th 09 06:43 PM


All times are GMT +1. The time now is 09:45 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"