+ Reply to Thread
Results 1 to 13 of 13

Copy specific data from one workbook to another workbook with certain criteria

  1. #1
    Forum Contributor marc5354's Avatar
    Join Date
    11-10-2009
    Location
    India
    MS-Off Ver
    Excel 2003 & Excel 2007
    Posts
    217

    Copy specific data from one workbook to another workbook with certain criteria

    Hello Guru,

    I am trying to copy certain data from one book to another.

    Example: Master file contain all kind of orders. i.e. Order No. starts with P-1234; ST-5145; MI-98705; etc. so what i am looking on it is, if file starts with "P" it will automatically updated in Report file in Sheet named as "Series P" and "ST" it will automatically updated in Report file in Sheet named as "Series ST" and "MI" it will automatically updated in Report file in Sheet named as "Series MI" and "RI" it will automatically updated in Report file in Sheet named as "Series RI" respectively with Sr. No, Order Number, Completed Date and Status.

    In Report file all need is completed files only. Pending and Cancelled files are not required.

    Somewhat i am new with macro's however comfortable with excel.

    Thank you...
    ...Marc
    Attached Files Attached Files
    Last edited by marc5354; 11-12-2012 at 12:10 PM.

  2. #2
    Valued Forum Contributor
    Join Date
    11-02-2012
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003, 2007, 2010
    Posts
    564

    Re: Copy specific data from one workbook to another workbook with certain criteria

    Considered a set of Pivot tables, if you are not comfortable with Macros?

  3. #3
    Forum Contributor marc5354's Avatar
    Join Date
    11-10-2009
    Location
    India
    MS-Off Ver
    Excel 2003 & Excel 2007
    Posts
    217

    Re: Copy specific data from one workbook to another workbook with certain criteria

    Hello haripopuri,

    thank you for quick reply.

    Could you help me on that, how to do that in pivot table.

    Marc

  4. #4
    Forum Contributor marc5354's Avatar
    Join Date
    11-10-2009
    Location
    India
    MS-Off Ver
    Excel 2003 & Excel 2007
    Posts
    217

    Re: Copy specific data from one workbook to another workbook with certain criteria

    Can anyone help me on this...

  5. #5
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: Copy specific data from one workbook to another workbook with certain criteria

    Should the report file be opened by the macro?
    If I have helped, Don't forget to add to my reputation (click on the star below the post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)
    Use code tags when posting your VBA code: [code] Your code here [/code]

  6. #6
    Forum Contributor marc5354's Avatar
    Join Date
    11-10-2009
    Location
    India
    MS-Off Ver
    Excel 2003 & Excel 2007
    Posts
    217

    Re: Copy specific data from one workbook to another workbook with certain criteria

    Yes Arlu, that's good catch...

    Marc

  7. #7
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: Copy specific data from one workbook to another workbook with certain criteria

    Do you want the path to be specified or should the user be prompted to open the file?

  8. #8
    Forum Contributor marc5354's Avatar
    Join Date
    11-10-2009
    Location
    India
    MS-Off Ver
    Excel 2003 & Excel 2007
    Posts
    217

    Re: Copy specific data from one workbook to another workbook with certain criteria

    Path should be specific...

  9. #9
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: Copy specific data from one workbook to another workbook with certain criteria

    Do you want the macro to check if the sheet exists or not in the report file?

  10. #10
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: Copy specific data from one workbook to another workbook with certain criteria

    Try this code
    Please Login or Register  to view this content.
    Put it in a standard module. Change the bold section to match your system.

  11. #11
    Forum Contributor marc5354's Avatar
    Join Date
    11-10-2009
    Location
    India
    MS-Off Ver
    Excel 2003 & Excel 2007
    Posts
    217

    Re: Copy specific data from one workbook to another workbook with certain criteria

    Thank you very much Arlu,

    This is what i want and what i am looking for.. however in report file i just need the completed files only...

    Marc

  12. #12
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: Copy specific data from one workbook to another workbook with certain criteria

    Updated code -
    Please Login or Register  to view this content.

  13. #13
    Forum Contributor marc5354's Avatar
    Join Date
    11-10-2009
    Location
    India
    MS-Off Ver
    Excel 2003 & Excel 2007
    Posts
    217

    Re: Copy specific data from one workbook to another workbook with certain criteria

    Thank you arlu..

    It's working.

    Marc

+ 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