LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 17
Default Vlookup error

Hello,

I have formula #1 included in a report generating macro that I am
currently attempting to debug. Formula #1 is exactly what I have
entered in the VBE. The problem is, when I run the macro, it enters
formula #2 in the spreadsheet, which doesn’t make sense to me. It
changes my lookup array, from my variable “Cusip” to “CorpA”, which is
the sheet where formula is being entered. What am I doing wrong
here?

1) Corp.Range("BA4").Resize(DataRow, 1).FormulaR1C1 =
"=VLOOKUP(RC[-48]," & Cusip.Address(external:=True,
ReferenceStyle:=xlR1C1) & ",2,FALSE)"

2)=VLOOKUP(E4,CorpA!$A$1:$D$2027,2,FALSE)
 
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
VLOOKUP #REF error Lost in Microbiology Excel Discussion (Misc queries) 3 May 11th 10 09:24 PM
Vlookup Error Farooqi Excel Worksheet Functions 2 April 15th 09 01:23 PM
vlookup error Seeker Excel Programming 3 February 23rd 09 11:54 AM
vlookup error Vlookup not accurate Excel Discussion (Misc queries) 0 October 4th 06 06:21 PM
VLookup error ricm9 Excel Programming 4 May 22nd 06 09:14 PM


All times are GMT +1. The time now is 09:39 AM.

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"