Results 1 to 10 of 10

Vlookup with Named ranges

Threaded View

  1. #3
    Forum Contributor
    Join Date
    05-06-2004
    Posts
    117
    Leith, I appreciate your help. Thank you. However, I have run into a problem running the code. I got a Run-time error '1004':Application-defined or object-defined error and the following part of the code is highlited in yellow:
    Set rFoundIt = .Find(What:=.Range("Date1"), _
                           After:=.Cells(1, 1), _
                           LookAt:=xlWhole, _
                           LookIn:=xlValues, _
                           SearchOrder:=xlByRows, _
                           SearchDirection:=xlNext, _
                           MatchCase:=False)
    Could this error be because, I do not have a named range of "Date1" in the temp file?
    What I figured is that the macro would look at the value of that named range in the destination file and go and find that value in the temp file.
    Also, the dates in the temp files are formulas, does this matter?
    Last edited by Leith Ross; 01-14-2009 at 03:12 PM. Reason: Added Code Tags

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