+ Reply to Thread
Results 1 to 7 of 7

Vlookup in VBA error 1004 - can't figure out what's wrong.

  1. #1
    Forum Contributor
    Join Date
    08-16-2010
    Location
    Australia
    MS-Off Ver
    Excel 2010
    Posts
    132

    Vlookup in VBA error 1004 - can't figure out what's wrong.

    Hello,

    I have the following code:

    Please Login or Register  to view this content.
    The bolded section above is where I am getting the issue. There is a problem with my vlookup syntax and I can't figure out what it is.

    - If I mouse over StepTwo.Name the correct value is there, WB2.xlsx
    - I think I'm using the correct "RC" style syntax all the way through the formula
    - I've tried the following after Data! to no avail
    - C7:C7
    - RC7:RC7
    - RC[7]:RC[7]

    What am I doing wrong here?

  2. #2
    Forum Expert judgeh59's Avatar
    Join Date
    02-07-2013
    Location
    Boise, Idaho
    MS-Off Ver
    Excel 2016
    Posts
    2,310

    Re: Vlookup in VBA error 1004 - can't figure out what's wrong.

    deleted - never mind
    Ernest

    Please consider adding a * if I helped

    Nothing drives me crazy - I'm always close enough to walk....

  3. #3
    Forum Expert judgeh59's Avatar
    Join Date
    02-07-2013
    Location
    Boise, Idaho
    MS-Off Ver
    Excel 2016
    Posts
    2,310

    Re: Vlookup in VBA error 1004 - can't figure out what's wrong.

    Inserted single quotes

    Please Login or Register  to view this content.

  4. #4
    Forum Contributor
    Join Date
    08-16-2010
    Location
    Australia
    MS-Off Ver
    Excel 2010
    Posts
    132

    Re: Vlookup in VBA error 1004 - can't figure out what's wrong.

    Quote Originally Posted by judgeh59 View Post
    deleted - never mind
    So close.... yet so far.......

  5. #5
    Forum Contributor
    Join Date
    08-16-2010
    Location
    Australia
    MS-Off Ver
    Excel 2010
    Posts
    132

    Re: Vlookup in VBA error 1004 - can't figure out what's wrong.

    Quote Originally Posted by judgeh59 View Post
    Inserted single quotes

    Please Login or Register  to view this content.
    I love you. This was driving me NUTS!

  6. #6
    Forum Expert judgeh59's Avatar
    Join Date
    02-07-2013
    Location
    Boise, Idaho
    MS-Off Ver
    Excel 2016
    Posts
    2,310

    Re: Vlookup in VBA error 1004 - can't figure out what's wrong.

    I take it then, that fix it....

  7. #7
    Forum Expert judgeh59's Avatar
    Join Date
    02-07-2013
    Location
    Boise, Idaho
    MS-Off Ver
    Excel 2016
    Posts
    2,310

    Re: Vlookup in VBA error 1004 - can't figure out what's wrong.

    Please remember to set this post to SOLVED....glad I could help

+ 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. [SOLVED] VBA VLookup Error 1004
    By Ronny66 in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 08-06-2013, 09:41 AM
  2. [SOLVED] Advanced Filtering -Runtime Error 1004. Cannot figure out why will not work.
    By thelisa in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-24-2013, 08:00 AM
  3. HELP, i am having an error and cant figure out whats wrong with my vba
    By basmienis in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-12-2012, 06:55 AM
  4. [SOLVED] VLookup() Run-Time Error '1004'
    By lloydgodin in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 04-12-2012, 12:13 PM
  5. Run time error 1004 - what have I done wrong?
    By alexwren in forum Excel General
    Replies: 1
    Last Post: 07-25-2006, 08:50 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