+ Reply to Thread
Results 1 to 3 of 3

Vlookup with iferror in vba

  1. #1
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Vlookup with iferror in vba

    I was helping a friend to get a vlookup done through vba. In my entire code, i have this code line for vlookup -
    Please Login or Register  to view this content.
    However, if the value is not available, i get an error - Unable to get the vlookup property of the worksheetfunction class (runtime error 1004).

    I tried using
    Please Login or Register  to view this content.
    But its not working.

    Please assist.
    Last edited by arlu1201; 02-23-2012 at 11:48 AM.
    If I have helped, Don't forget to add to my reputation (click on the star below the post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)
    Use code tags when posting your VBA code: [code] Your code here [/code]

  2. #2
    Forum Expert nilem's Avatar
    Join Date
    10-22-2011
    Location
    Ufa, Russia
    MS-Off Ver
    2013
    Posts
    3,377

    Re: Vlookup with iferror in vba

    Hi Arlette
    try
    Please Login or Register  to view this content.
    or use On Error Resume Next

  3. #3
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: Vlookup with iferror in vba

    Thanks so much. The on error did the trick.

+ Reply to Thread

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