+ Reply to Thread
Results 1 to 6 of 6

Copy and paste to new spreadsheet based in date and other criteria are met VBA

  1. #1
    Registered User
    Join Date
    10-25-2012
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    11

    Copy and paste to new spreadsheet based in date and other criteria are met VBA

    I need a macros that would allow me to do the following:
    I have a excel spreadsheet-1 that contains a list of materials. What I like to be able to do is put a button on another spreadsheet-2 that will check for and move rows based on the date (dd/mm/year) in a certain year (column A) and the status (‘used’ – column E) to that spreadsheet-2. Additionally when the check is performed, it should add the latest “used” materials right under the last row used (in ss-2). And lastly, delete that copied row from spreadsheet-1.
    I haven’t been able to find something that would do exactly that.
    Thank you so much for your time.
    Last edited by andie2013; 11-15-2012 at 01:02 PM.

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

    Re: Copy and paste to new spreadsheet based in date and other criteria are met VBA

    Does this help?

    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    10-25-2012
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    11

    Re: Copy and paste to new spreadsheet based in date and other criteria are met VBA

    I tried it and it works but the last row it copies doesn't have the same formatting that the others had (or the column width that the original table had).

  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: Copy and paste to new spreadsheet based in date and other criteria are met VBA

    Is this any better?

    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    10-25-2012
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    11

    Re: Copy and paste to new spreadsheet based in date and other criteria are met VBA

    Yes, it works like a charm. THANK YOU!

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

    Re: Copy and paste to new spreadsheet based in date and other criteria are met VBA

    You're welcome. Glad to help out, and thanks for the feedback.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

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