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: 48
Default Problems with the IsNa Function in VB

I'm using visual studio to work with excel, Can anyone tell me why this isn't
working:

For i = 3 To lastRow Step 1

If
(LCV.WorksheetFunction.IsNA(LCV.WorksheetFunction. VLookup(LCV.Range("A" &
i).Value, oApp.Range("A1:J" & lastRow).Value, 10, False))) Then
LCV.Range("L" & i).Value = 0
Else : LCV.Range("L" & i).Value =
LCV.WorksheetFunction.VLookup(LCV.Range("A" & i).Value, oApp.Range("A1:J" &
lastRow).Value, 10, False)
End If

Instead of returning a zero where there is an N/A it just kicks me out of
the program. Any ideas? Thanks ahead of time!
 
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
ISNA Function Walley Excel Worksheet Functions 4 November 19th 08 09:20 PM
IF?ISNA?MATCH? Function? handyaccountant Excel Discussion (Misc queries) 2 October 2nd 08 06:33 PM
Vlookup - ISNA function Eduardo Excel Discussion (Misc queries) 4 September 24th 08 06:10 PM
ISNA function [email protected] Excel Discussion (Misc queries) 3 August 16th 07 01:24 AM
example if IF(ISNA()) function Gus Excel Worksheet Functions 8 November 24th 04 05:27 PM


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