+ Reply to Thread
Results 1 to 3 of 3

copy select rows on 2 sheets to a 3rd sheet

  1. #1
    Registered User
    Join Date
    03-26-2009
    Location
    Texas
    MS-Off Ver
    Excel 2002, SP3
    Posts
    2

    copy select rows on 2 sheets to a 3rd sheet

    Apologies if this has been covered already - my search for prior posts turned up nothing.

    Excel 2002, SP3

    I have attached a simple file to explain what I am wanting to automate. The file includes 3 tabs: JAN, FEB, GASOLINE. The JAN and FEB tabs include transactions for those particular months. The 3rd tab, GASOLINE, is what I am trying to automate. I would like a way to search through the JAN and FEB tabs and copy all of the rows that have "gasoline" as the category to the GASOLINE tab. I have manually created the table on the GASOLINE tab as it should be - I am looking for either VB code or formulas (preferred) to automate the process. In the real spreadsheet where this will be implemented, there will be 12 tabs to sort through (one for each month). Also, I would like for the GASOLINE tab to continuously update whenever new transactions are entered on the JAN and FEB tabs.

    Thanks in advance for any help with this.
    Attached Files Attached Files
    Last edited by thedeacon; 03-26-2009 at 11:09 AM.

  2. #2
    Forum Contributor
    Join Date
    02-14-2007
    Location
    Chester, England
    MS-Off Ver
    2010 & 2016
    Posts
    312

    Re: copy select rows on 2 sheets to a 3rd sheet

    Hi There

    I am just getting to know VBA myself so there may be a better way. But this seems to work on your example workbook.

    Please Login or Register  to view this content.

    hope this helps

    Cheers

    Jim

  3. #3
    Registered User
    Join Date
    03-26-2009
    Location
    Texas
    MS-Off Ver
    Excel 2002, SP3
    Posts
    2

    Re: copy select rows on 2 sheets to a 3rd sheet

    Thanks, Jim - that seems to work just fine. Thanks for your help!

+ 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