+ Reply to Thread
Results 1 to 3 of 3

Vba & vlookup

  1. #1
    Forum Contributor
    Join Date
    12-04-2009
    Location
    England
    MS-Off Ver
    Excel 2003
    Posts
    127

    Vba & vlookup

    Hello,

    Haven't poste here in a while.

    Could someone help me out with a little problem I am having.

    I have written / Recorded a macro, which VLOOKUP's data from another workbook.

    The amount of ROWS on each workbook changes on a daily basis. (anthing from 5 rows upto 1000+ rows)

    The macro I have works fine apart from this bit.

    Please Login or Register  to view this content.
    in cell O2, I VLOOKUP the data, then doubleclick the bottom right corner of the cell to autofill down to the bottom of the list.

    Of course, with the amount of rows changing on a daily basis, I need to autofill down to the bottom of the list, but I dont know how many rows there is going to be.

    The current VBA code shows range O2:O145, which is the amount of rows that were there when I first recorded the macro.


    Can anyone help please? :D

    Any questions just ask, because I probably havent explained it that clearly.


    Thanks in Advance :D
    Last edited by Robotacha2010; 12-02-2010 at 11:30 AM.

  2. #2
    Forum Guru
    Join Date
    08-26-2007
    Location
    London
    Posts
    4,606

    Re: Vba & vlookup

    Perhaps this. The last row is based here on column A so just change as appropriate. Have removed redundant select statements too.
    Please Login or Register  to view this content.

  3. #3
    Forum Contributor
    Join Date
    12-04-2009
    Location
    England
    MS-Off Ver
    Excel 2003
    Posts
    127

    Re: Vba & vlookup

    that worked a treat.

    thankyou greatly!

    And thank-you for removing the irrelevant code.

    I am still using MACRO RECORDER a hell of a lot, but I am learning quickly


    best regards.

+ 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