Results 1 to 4 of 4

Vlookup contained within VBA code.

Threaded View

  1. #1
    Forum Contributor
    Join Date
    11-02-2011
    Location
    Rugby, England
    MS-Off Ver
    Office 365
    Posts
    869

    Vlookup contained within VBA code.

    Good morning Happy Campers.

    I have experience with both VBA (basic) & Vlookups (good), but would like to know how to combine them.

    I get the vlookup & how it works (reference cell, data range, column # & the exact/near match)

    Please see attached
    SHEET1
    Range - A:F contains the range named 'Data' used in J:O
    Range - J:O contains the cells with Vlookup manually entered
    Range - Q:V contains the range where i would like VBA to do the calculation, and enter only the values from the result instead of the formula.

    SHEET2
    Range - A:F contains the range named 'Data1' used in J:O
    Range - J:O contains the cells with Vlookup manually entered
    Range - Q:V contains the range where i would like VBA to do the calculation, and enter only the values from the result instead of the formula.

    I would also like to know how to write the code so it would do the calculation on both sheets, upon calculating the results, it would enter the value only.
    Then, to build on that i would need to know how to get the code to ignore cells that contained information, and focus only on blank cells.
    Both sheets can potentially be hundreds of rows long.

    The reasoning behind my question is i have a very large workbook with thousands of rows across 5 tabs, and i would like to reduce the amount of calculations each time an entry is made, the answer to the above wont solve my issue, but will greatly improve my understanding of how to do it? (i may also be back with more questions lol)

    Kind Regards
    galvinpaddy
    Attached Files Attached Files

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