+ Reply to Thread
Results 1 to 2 of 2

For Each loop using vlookup not working

  1. #1
    Registered User
    Join Date
    08-10-2012
    Location
    London
    MS-Off Ver
    Excel 2007
    Posts
    35

    For Each loop using vlookup not working

    hi guys,

    I am having problems with the following code. keep getting and error code 1004. can anyone help?

    Please Login or Register  to view this content.
    Thanks!

    Moderator's Edit: Use code tags when you post code. To do so, select the code and click on the # icon above.
    Last edited by arlu1201; 11-11-2012 at 09:19 AM.

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,426

    Re: For Each loop using vlookup not working

    I suspect that it is your use of "row" as a range(?) variable. Row is an Excel/VBA reserved word and will be interpreted as a property of a range, particularly as you have not defined it.

    Call it something else (that you have defined).

    Regards, TMS
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


+ 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