Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 48
Default Double Vlookup Problem

This is a random issue, but I'm hoping some of you have experienced it before
and will be able to help. I'm using Visual Studio 2005 but its very similar
to VBA so any feedback will be very helpful. oApp and LCV refer to excel
applications. Ok I'm trying to do 2 vlookups using 2 different spread
sheets. My first Vlookup works fine:

On Error Resume Next
tmp = oApp.WorksheetFunction.VLookup(oApp.Range("A" & i).Value,

LCV.Range("A3:H" & lastRow2).Value, 8, False)
On Error GoTo 0


then when I have to do another vlookup:


On Error Resume Next
tmp1 = LCV.WorksheetFunction.VLookup(LCV.Range("A" & n).Value,
oApp.Range("A3:F" & lastRow).Value, 2, False)
On Error GoTo 0


tmp1 returns nothing...although the value is there, it won't let me search
within a table array that has already been referred to in another vlookup.
Even when I try it manually in excel it doesn't work. The reason I'm doing
this is because I'm adding rows to oApp from LCV that aren't there. Any
logical ideas around this? Thanks in advance!

Reply
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
Double VLOOKUP CCrew2000 Excel Discussion (Misc queries) 4 July 18th 07 09:46 PM
DOUBLE VLOOKUP instereo911 via OfficeKB.com Excel Discussion (Misc queries) 1 May 24th 07 12:13 AM
Double VLookup Byron720 Excel Discussion (Misc queries) 4 May 4th 07 05:14 PM
double axis, double problem (i hope only to me) kitcho Charts and Charting in Excel 1 December 30th 06 12:52 AM
Need Help with Double Vlookup The Moose Excel Discussion (Misc queries) 4 October 27th 06 05:34 AM


All times are GMT +1. The time now is 06:18 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"