Results 1 to 14 of 14

VBA Vlookup Problem

Threaded View

ahwestrich VBA Vlookup Problem 08-13-2007, 04:34 PM
rylo HI Is your calculation... 08-13-2007, 07:02 PM
ahwestrich Yeah, the calculations are... 08-13-2007, 07:12 PM
rylo Hi Can't see why, but the... 08-13-2007, 07:27 PM
ahwestrich i just tried that and it did... 08-13-2007, 07:42 PM
  1. #1
    Registered User
    Join Date
    08-13-2007
    Posts
    7

    VBA Vlookup Problem

    I use the following code for a vlookup in my VBA Macro:
        Range("F2").Select
        ActiveCell.FormulaR1C1 = _
            "=IF(ISNA(VLOOKUP(RC[1], Lookup!A:A,1,FALSE)), ""Not Found"", ""Found"")"
        Selection.AutoFill Destination:=Range("F2:F65000")
    When this is executed in Excel, the following results show (attached picture) incorrectly. The vlookup isn't calculating?!

    But then outside of the macro, when I click in the formula bar and press 'enter', it calculates it to a different result. Why isn't it calculating correctly with this code?

    I'd appreciate any help, guidance, or direction someone can offer.

    Thanks
    Attached Images Attached Images
    Last edited by ahwestrich; 08-13-2007 at 04:36 PM.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1