+ Reply to Thread
Results 1 to 2 of 2

problems with application.worksheetsfunction (vlookup)

  1. #1
    Registered User
    Join Date
    06-03-2013
    Location
    Netherlands
    MS-Off Ver
    Excel 2010
    Posts
    46

    problems with application.worksheetsfunction (vlookup)

    Hi

    I'm running a code that looksup values in a different excel file and copies these back to my master file. I keep getting an error message with the following piece of code

    Code:
    Please Login or Register  to view this content.
    I keep getting an error 1004, (application-defined or object-defined error). I cant figure out what I'm doing wrong

    Can you guys offer some advice?

  2. #2
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS 365 Family 64-bit 2404
    Posts
    24,866

    Re: problems with application.worksheetsfunction (vlookup)

    Not enough code or context to provide a diagnosis. The code for VLOOKUP looks OK, but the error could be happening in several places.

    Is the file Workbooks(Name) open at the point where it is used? If the file is not open, the code will fail. Although Excel formulas can refer to external files without the file being open, VBA code cannot use a range expression like

    Please Login or Register  to view this content.
    if the file is not open.

    How are these variables declared? At the point where the error occurs, what are the values of these variables?
    • current
    • regel
    • rij
    • taak
    • Name
    Jeff
    | | |會 |會 |會 |會 | |:| | |會 |會
    Read the rules
    Use code tags to [code]enclose your code![/code]

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Having Problems with OnTime Application
    By mcb123 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 01-09-2013, 12:13 PM
  2. Application Onkey Problems
    By realniceguy5000 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 12-30-2009, 09:49 AM
  3. Problems with Application.Inputbox
    By Hernandez, Roberto in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 12-02-2005, 03:35 PM
  4. Problems using Application.IgnoreRemoteReferences
    By JGeniti in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-12-2005, 09:05 AM
  5. [SOLVED] Problems with Excel VBA application
    By [email protected] in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-12-2005, 01:05 PM

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