+ Reply to Thread
Results 1 to 9 of 9

Cut and Paste Rows based on criteria : Three seperate workbooks involved

  1. #1
    Registered User
    Join Date
    04-01-2014
    Location
    Asia
    MS-Off Ver
    Excel 2003
    Posts
    3

    Cut and Paste Rows based on criteria : Three seperate workbooks involved

    Hello!

    I have three excel workbooks named John, Jack and Lilian. I need to compare columns B and C in John.xlsx and Jack.xlsx . If both these columns match, the corresponding row from Jack.xlsx should selected and moved to Lilian.xlsx and removed from Jack.xlsx
    Does that make sense?

    Here are the excel files with sample data. :

    Jack.xlsx

    John.xlsx

    Lilian.xlsx

    I am a newbie as far as Macros is concerned. So it is a real troublesome task for me. Any help is highly appreciated.

    Thanks for the effort!

    Olivia

  2. #2
    Forum Contributor Jack7774's Avatar
    Join Date
    08-31-2012
    Location
    Georgia, US
    MS-Off Ver
    Excel 2010
    Posts
    576

    Re: Cut and Paste Rows based on criteria : Three seperate workbooks involved

    Try this. Keep in mind you will have to have those files already open.

    Please Login or Register  to view this content.
    Last edited by Jack7774; 04-29-2014 at 01:37 PM. Reason: additional information needed to mention
    Thank those who have helped you by clicking the Star * below their name and please mark your post [SOLVED] if it has been answered satisfactorily.

  3. #3
    Forum Contributor Jack7774's Avatar
    Join Date
    08-31-2012
    Location
    Georgia, US
    MS-Off Ver
    Excel 2010
    Posts
    576

    Re: Cut and Paste Rows based on criteria : Three seperate workbooks involved

    Oh I forgot one part one moment. The deletion part.

  4. #4
    Forum Contributor Jack7774's Avatar
    Join Date
    08-31-2012
    Location
    Georgia, US
    MS-Off Ver
    Excel 2010
    Posts
    576

    Re: Cut and Paste Rows based on criteria : Three seperate workbooks involved

    Okay this should work.

    Please Login or Register  to view this content.

  5. #5
    Forum Contributor Jack7774's Avatar
    Join Date
    08-31-2012
    Location
    Georgia, US
    MS-Off Ver
    Excel 2010
    Posts
    576

    Re: Cut and Paste Rows based on criteria : Three seperate workbooks involved

    Welcome to the forums as well!

  6. #6
    Registered User
    Join Date
    04-01-2014
    Location
    Asia
    MS-Off Ver
    Excel 2003
    Posts
    3

    Re: Cut and Paste Rows based on criteria : Three seperate workbooks involved

    Thanks for the detailed response. I tried this out and the First part ,ie., matching works perfect. File Lilian gets updated with row data that meets the criteria and all other rows get a null value.

    The second part, ie., delete section is going weird. When I run the codes for delete option, the data in Lilian gets updated, which is correct. But the data in Jack.xlsx becomes same as that in Lilian.xlsx. Its supposed to be like

    new jack.xlsx = "data in actual file Jack" minus " the data in lilian. "

    I tried to play around a bit , something is still going wrong.

  7. #7
    Forum Contributor Jack7774's Avatar
    Join Date
    08-31-2012
    Location
    Georgia, US
    MS-Off Ver
    Excel 2010
    Posts
    576

    Re: Cut and Paste Rows based on criteria : Three seperate workbooks involved

    I believe this should do it.

    Please Login or Register  to view this content.
    Last edited by Jack7774; 04-30-2014 at 09:06 AM. Reason: one to many lines sorry

  8. #8
    Registered User
    Join Date
    04-01-2014
    Location
    Asia
    MS-Off Ver
    Excel 2003
    Posts
    3

    Re: Cut and Paste Rows based on criteria : Three seperate workbooks involved

    That worked just perfect. You are a lifesaver Thanks a lot. Your code saved me alot of time and effort. Had to sort and move like 100K+ records and now I can do it really easy. Once again thank you very much.

  9. #9
    Forum Contributor Jack7774's Avatar
    Join Date
    08-31-2012
    Location
    Georgia, US
    MS-Off Ver
    Excel 2010
    Posts
    576

    Re: Cut and Paste Rows based on criteria : Three seperate workbooks involved

    I am glad I was able to help. Thank you for the rep. When you have a moment please mark your thread solved.

+ 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. Move Rows between workbooks based on criteria
    By bbennett281 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-04-2013, 10:57 AM
  2. [SOLVED] copy and paste rows based on criteria in column
    By CharlieZangel in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 03-26-2013, 12:54 PM
  3. [SOLVED] Cut and Paste Rows from one worksheet to another based on criteria in two columns
    By GatorsBucs in forum Excel Programming / VBA / Macros
    Replies: 14
    Last Post: 02-08-2013, 12:19 PM
  4. Copy and Paste Rows based on Criteria onto another sheet and sort based on oldest item
    By Kushal8684 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-25-2013, 05:37 AM
  5. Error 400 - Cuting rows into new workbooks based on criteria
    By adgjqetuo in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-10-2009, 07:23 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