+ Reply to Thread
Results 1 to 3 of 3

VBA Vlookup row and column variables

  1. #1
    Registered User
    Join Date
    11-20-2008
    Location
    Melbourne, Australia
    MS-Off Ver
    Office 2007 Professional
    Posts
    20

    VBA Vlookup row and column variables

    I am trying to do a vlookup on my Excel spreadsheet using the following VBA code:

    Please Login or Register  to view this content.
    However when I run the macro the following formula ends up in cell J2 :
    Please Login or Register  to view this content.
    The formula is correct except for the apostrophes ' ' around o2.

    How can I make it so there there are not any apostrophes around o2 so that it references the cell o2???
    Last edited by rylo; 11-20-2008 at 08:27 PM. Reason: add code tags

  2. #2
    Forum Expert
    Join Date
    01-15-2007
    Location
    Brisbane, Australia
    MS-Off Ver
    2007
    Posts
    6,591
    Hi

    Can you please review the forum rules and make sure you wrap your code in future.

    Try changing

    Please Login or Register  to view this content.
    to

    Please Login or Register  to view this content.
    rylo

  3. #3
    Registered User
    Join Date
    11-20-2008
    Location
    Melbourne, Australia
    MS-Off Ver
    Office 2007 Professional
    Posts
    20
    Quote Originally Posted by rylo View Post
    Hi

    Can you please review the forum rules and make sure you wrap your code in future.

    Try changing

    Please Login or Register  to view this content.
    to

    Please Login or Register  to view this content.
    rylo
    Ooops, sorry about that! I will remember for next time!

    Your solution work perfectly! Thank you very much!!

+ 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