Closed Thread
Results 1 to 3 of 3

VBA Vlookup Formula not populating variable with answer

  1. #1
    Registered User
    Join Date
    04-11-2013
    Location
    Las Vegas
    MS-Off Ver
    Excel 2007
    Posts
    26

    VBA Vlookup Formula not populating variable with answer

    Hi experts! I cannot get this Vlookup to perform in VBA code.

    If you guys can help i would be greatful....thank.s


    Basically here is what is happening....

    I want to look up a variable named VActual which is holding the text name September in it in a table range named rMonths and return to the variable c the value in the second column which is a 9. I cannot get the variable c to receive the value 9 since the vlookup is not functioning in VBA.


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

    Named Range: rMonths

    January 1
    February 2
    . .
    . .
    September 9
    . .
    December 12
    Last edited by orozvik; 11-15-2013 at 11:46 AM.

  2. #2
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2405 Win 11 Home 64 Bit
    Posts
    23,895

    Re: VBA Vlookup Formula not populating variable with answer

    Your post does not comply with Rule 3 of our Forum RULES. Use code tags around code.

    Posting code between [CODE]Please [url=https://www.excelforum.com/login.php]Login or Register [/url] to view this content.[/CODE] tags makes your code much easier to read and copy for testing, it also maintains VBA formatting.

    Highlight your code and click the # icon at the top of your post window. More information about these and other tags can be found here



    (This thread should receive no further responses until this moderation request is fulfilled, as per Forum Rule 7)
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  3. #3
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2405 Win 11 Home 64 Bit
    Posts
    23,895

    Re: VBA Vlookup Formula not populating variable with answer

    Welcome to the Forum, unfortunately:

    This is a duplicate post and as such does not comply with Rule 5 of our forum rules. This thread will now be closed, you may continue in your other thread.

    Thread Closed.

Closed Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Using Variable within Vlookup Formula
    By Jiptastic in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-22-2013, 12:04 PM
  2. formula answer with vlookup
    By wasim.qureshi in forum Excel General
    Replies: 1
    Last Post: 10-12-2009, 09:03 AM
  3. Variable value not populating
    By Amber_D_Laws in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 01-25-2006, 01:15 PM
  4. [SOLVED] VLOOKUP Formula using variable for lookup_value
    By Los in RI in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-23-2005, 05:55 PM
  5. [SOLVED] Populating a cell with the current value of a variable
    By Linking to specific cells in pivot table in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-18-2005, 06:06 AM

Tags for this Thread

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