+ Reply to Thread
Results 1 to 16 of 16

How to adjust VBA for VLOOKUP to cover entire range of data

  1. #1
    Forum Contributor
    Join Date
    10-02-2013
    Location
    Houston, TX
    MS-Off Ver
    office 365
    Posts
    638

    How to adjust VBA for VLOOKUP to cover entire range of data

    I would like to adjust the range in this VLOOKUP to include more of a range sometimes my range is only 1000 rows and sometimes it is over 100000 rows.
    right now it is only reading 5281 rows how can I adjust this?


    Please Login or Register  to view this content.

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,364

    Re: How to adjust VBA for VLOOKUP to cover entire range of data

    Please Login or Register  to view this content.

    Regards, TMS
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  3. #3
    Forum Contributor
    Join Date
    10-02-2013
    Location
    Houston, TX
    MS-Off Ver
    office 365
    Posts
    638

    Re: How to adjust VBA for VLOOKUP to cover entire range of data

    Would I just try the same thing with
    Please Login or Register  to view this content.
    for when it auto fills the range F3:F5264

    How would I change that one

  4. #4
    Forum Expert
    Join Date
    06-12-2012
    Location
    Ridgefield Park, New Jersey
    MS-Off Ver
    Excel 2003,2007,2010
    Posts
    10,241

    Re: How to adjust VBA for VLOOKUP to cover entire range of data

    Same thing:

    Please Login or Register  to view this content.

  5. #5
    Forum Contributor
    Join Date
    10-02-2013
    Location
    Houston, TX
    MS-Off Ver
    office 365
    Posts
    638

    Re: How to adjust VBA for VLOOKUP to cover entire range of data

    Thanks that worked great

  6. #6
    Forum Contributor
    Join Date
    10-02-2013
    Location
    Houston, TX
    MS-Off Ver
    office 365
    Posts
    638

    Re: How to adjust VBA for VLOOKUP to cover entire range of data

    Sorry heres another one this one is for inside the chart data ranges.

    Please Login or Register  to view this content.
    How could this one be changed to show entire range in know this range is over 4000 now

    can it be done like the other one? Just the range with the last 2 "xvalues & values"

  7. #7
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,364

    Re: How to adjust VBA for VLOOKUP to cover entire range of data

    can it be done like the other one?
    Other two, in fact.


    Probably worth giving it a try
    Last edited by TMS; 09-02-2014 at 03:56 PM.

  8. #8
    Forum Contributor
    Join Date
    10-02-2013
    Location
    Houston, TX
    MS-Off Ver
    office 365
    Posts
    638

    Re: How to adjust VBA for VLOOKUP to cover entire range of data

    Please Login or Register  to view this content.
    Didn't work application defined error

  9. #9
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,364

    Re: How to adjust VBA for VLOOKUP to cover entire range of data

    Look at where the quotes are in the other two.

  10. #10
    Forum Contributor
    Join Date
    10-02-2013
    Location
    Houston, TX
    MS-Off Ver
    office 365
    Posts
    638

    Re: How to adjust VBA for VLOOKUP to cover entire range of data

    I keep getting expected then I add those and get syntax errors then says the $ is invalid characters ....not having much luck

  11. #11
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,364

    Re: How to adjust VBA for VLOOKUP to cover entire range of data

    Please Login or Register  to view this content.

  12. #12
    Forum Contributor
    Join Date
    10-02-2013
    Location
    Houston, TX
    MS-Off Ver
    office 365
    Posts
    638

    Re: How to adjust VBA for VLOOKUP to cover entire range of data

    Yes that is how I had it and you get a syntax error which highlights the entire first row and both rows are in red.

  13. #13
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,364

    Re: How to adjust VBA for VLOOKUP to cover entire range of data

    Please Login or Register  to view this content.

    lLR is lower case l, upper case L, upper case R ... not numeric one (1), upper case L, upper case R


    If you use Dim to define (dimension) your variables you would find that you can't have a variable that starts with a number. And, if you use Option Explicit at the top of your module, you won't be able to use a variable that you haven't defined.

  14. #14
    Forum Contributor
    Join Date
    10-02-2013
    Location
    Houston, TX
    MS-Off Ver
    office 365
    Posts
    638

    Re: How to adjust VBA for VLOOKUP to cover entire range of data

    Thanks I got that to work finally Ill make new post now I'm getting new error "Method 'axes of object' _ chart Failed" If I use my old set for my Range it works fine but now with the set I got to work with your help I get that message.

    Should I start new Thread?

  15. #15
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,364

    Re: How to adjust VBA for VLOOKUP to cover entire range of data

    Should I start new Thread?
    Yes. New question, new thread.

    Thanks for the rep.

  16. #16
    Forum Contributor
    Join Date
    10-02-2013
    Location
    Houston, TX
    MS-Off Ver
    office 365
    Posts
    638

    Re: How to adjust VBA for VLOOKUP to cover entire range of data

    I tried to delete reply. All good as of now
    Last edited by bdouglas1011; 09-03-2014 at 08:11 AM.

+ 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] I need to adjust this working macro to cover a few scenarios
    By mk3ll00 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-23-2014, 09:25 AM
  2. How to adjust data date range based on analysis range
    By MechEngSk in forum Excel General
    Replies: 1
    Last Post: 09-15-2013, 11:28 PM
  3. Worksheet Doesn't Cover Entire Page
    By izgetsmail in forum Excel General
    Replies: 1
    Last Post: 01-25-2013, 06:25 PM
  4. [SOLVED] Vlookup needs to cover entire column, formula quits on me.
    By TheBigRelish in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 10-04-2012, 07:30 PM
  5. Adjust plot to variable data range
    By Pipopper in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-26-2009, 01:37 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