+ Reply to Thread
Results 1 to 6 of 6

how to use lookup string in VBA code?

  1. #1
    Registered User
    Join Date
    05-24-2012
    Location
    Adelaide
    MS-Off Ver
    Excel 2010
    Posts
    18

    how to use lookup string in VBA code?

    Hi
    I need to incorporate lookup in my code but don't know how:
    Please Login or Register  to view this content.
    Can anybody help?
    Last edited by Leith Ross; 05-24-2012 at 08:52 PM. Reason: Added Code Tags

  2. #2
    Forum Guru
    Join Date
    03-12-2010
    Location
    Canada
    MS-Off Ver
    2010 and 2013
    Posts
    4,418

    Re: how to use lookup string in VBA code?

    Are you trying to put a vlookup formula into a cell or putting the results of the vlookup into the cell.

    For vlookup to work in vba, you need the following

    vlookup is Application.Vlookup

    Named Ranges have to be quantifies like this:

    Please Login or Register  to view this content.
    Please consider:

    Thanking those who helped you. Click the star icon in the lower left part of the contributor's post and add Reputation.
    Cleaning up when you're done. Mark your thread [SOLVED] if you received your answer.

  3. #3
    Registered User
    Join Date
    05-24-2012
    Location
    Adelaide
    MS-Off Ver
    Excel 2010
    Posts
    18

    Re: how to use lookup string in VBA code?

    I want to put a formula into the cell. The names of the ranges I defined through the Excel's Insert command. Please specify the exact line in my code if possible

  4. #4
    Forum Guru
    Join Date
    03-12-2010
    Location
    Canada
    MS-Off Ver
    2010 and 2013
    Posts
    4,418

    Re: how to use lookup string in VBA code?

    Try this:

    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    05-24-2012
    Location
    Adelaide
    MS-Off Ver
    Excel 2010
    Posts
    18

    Re: how to use lookup string in VBA code?

    Thanks, it's working

  6. #6
    Forum Guru
    Join Date
    03-12-2010
    Location
    Canada
    MS-Off Ver
    2010 and 2013
    Posts
    4,418

    Re: how to use lookup string in VBA code?

    Thanks for the feedback.

    Good luck.

    abousetta

+ 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