+ Reply to Thread
Results 1 to 6 of 6

Feeling good but...help with last row

  1. #1
    Registered User
    Join Date
    12-13-2013
    Location
    Stephens City, VA
    MS-Off Ver
    Excel 2010
    Posts
    24

    Feeling good but...help with last row

    So I've finally been able (after several days of searching) to come up with and modify VBA code that will look for "Y" in column Q of three worksheets and copy the entire row to another worksheet ("!!").

    My problem is with z = 3000

    I'm trying to reduce the amount of processing it takes to find the data I want and make this code the simplest I can.

    I've looked and tried several examples but can not get a last row search, instead of specifying the last row as 3000. Eventually I will have to search more than 3000 rows for the information I want.

    Any help is appreciated.

    My code:

    Please Login or Register  to view this content.
    Last edited by alansidman; 01-29-2014 at 10:50 AM. Reason: code tags added

  2. #2
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 insider Version 2504 Win 11
    Posts
    24,672

    Re: Feeling good but...help with last row

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

    Posting code between
    Please Login or Register  to view this content.
    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



    (I have added them for you today. Please read all Forum Rules and comply in the future.)
    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 insider Version 2504 Win 11
    Posts
    24,672

    Re: Feeling good but...help with last row

    Change

    Please Login or Register  to view this content.
    to

    Please Login or Register  to view this content.
    and on closer look, I think you need to move it to right after your line of code

    Please Login or Register  to view this content.
    Last edited by alansidman; 01-29-2014 at 10:55 AM.

  4. #4
    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
    47,997

    Re: Feeling good but...help with last row

    Maybe:

    Please Login or Register  to view this content.

    Amazed you didn't get asked to change the thread title but I guess "help with last row" covers it.


    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


  5. #5
    Registered User
    Join Date
    12-13-2013
    Location
    Stephens City, VA
    MS-Off Ver
    Excel 2010
    Posts
    24

    Re: Feeling good but...help with last row

    Thank you guys for the help!

    I tried alansidman's code first but kept getting a Run-time error 1044 on that line of code.

    TMShucks, so far the code works like a charm.

    Thanks again for the quick replies and help.

    Respectfully,

    Tim

  6. #6
    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
    47,997

    Re: Feeling good but...help with last row

    You're welcome. Thanks for the rep.

+ 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. Hi, I am feeling great about join this forum
    By Hardup in forum Hello..Introduce yourself
    Replies: 1
    Last Post: 01-25-2013, 11:32 AM
  2. Hi, Feeling good to be in this Forum
    By AsifSayed in forum Hello..Introduce yourself
    Replies: 1
    Last Post: 10-14-2012, 07:07 PM
  3. Feeling Stupid
    By burkhamerk in forum Excel General
    Replies: 2
    Last Post: 07-09-2011, 02:40 AM
  4. Anyone feeling brainy?
    By dominicb in forum The Water Cooler
    Replies: 22
    Last Post: 01-25-2009, 01:28 PM
  5. Feeling Scattered about XY Scatter Chart
    By ExcelJamie in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 12-02-2006, 06:00 AM

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