+ Reply to Thread
Results 1 to 5 of 5

Macro to copy the data from a closed file to another work book using filters

  1. #1
    Registered User
    Join Date
    03-11-2013
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2010
    Posts
    97

    Macro to copy the data from a closed file to another work book using filters

    Hi All

    Looking for a macro to copy the data from a closed file to another work book using filters

     Transfer data from raw file with Approved in filter for overall status and blanks from Raw file name “GRC DATA2”.
     Add an email ID column and Comments Columns at the end of all the headers
     Create a message box pop to ask to enter email ids manually into EMAIL ID and comments into comments columns
    I have enclosed a sample file for your perusal. Kindly help

    GRC DATA2.xlsx
    template2.xlsx

    kindly add macro in Template 2

    Thank you
    Last edited by Leith Ross; 03-24-2014 at 02:31 PM.

  2. #2
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,258

    Re: Macro to copy the data from a closed file to another work book using filters

    Hello Kiran Kurapati,

    The attached workbook should be close to what you need. Let me know what needs to be changed.
    Attached Files Attached Files
    Sincerely,
    Leith Ross

    Remember To Do the Following....

    1. Use code tags. Place [CODE] before the first line of code and [/CODE] after the last line of code.
    2. Thank those who have helped you by clicking the Star below the post.
    3. Please mark your post [SOLVED] if it has been answered satisfactorily.


    Old Scottish Proverb...
    Luathaid gu deanamh maille! (Rushing causes delays!)

  3. #3
    Registered User
    Join Date
    03-11-2013
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2010
    Posts
    97

    Re: Macro to copy the data from a closed file to another work book using filters

    Hi Ross

    I am glad you showed me this macro… Thanks for the wonderful work…

    Just want to check if we can tweet this macro little further.

    1. Is it possible to add another filter along with present filter when we are importing data
    from raw data file
    I am looking for the additional filter on training date. I also want data only where training date is blank which means… I want to transfer data from GRC DATA2 file with Approved in filter for overall status column and blanks from training date. (2 filters applied)
    2. Along with Email ID, Comments, I also need to add duplicate record and Completion Date columns
    3. Is it possible to enter a comment “Duplicate record” in the duplicate record column where ever requestor name is twice…
    4. Rather than a form… Is it possible to add to create a message box which should contain message “Please enter Email address and Comments”
    Looking forward your response

    Regards
    Kiran Kumar

  4. #4
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,258

    Re: Macro to copy the data from a closed file to another work book using filters

    Hello Kiran Kumar,

    The macro below has been changed to filter using both columns. The results are also checked for duplicate requestors. Blank fields are not flagged as duplicates. The attached workbook contains the changes.

    Please Login or Register  to view this content.
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    03-11-2013
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2010
    Posts
    97

    Re: Macro to copy the data from a closed file to another work book using filters

    Hi Leith Ross

    Thank you for the help... its pleasure to know... The macro was prefect

    again many a thanks

    Regards
    Kiran kumar

  6. #6
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,258

    Re: Macro to copy the data from a closed file to another work book using filters

    Hello Kiran Kumar ,

    You're welcome.

+ 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. Data copy Automatically into closed work book
    By rajeev.raj in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-18-2013, 12:25 AM
  2. Macro to filter and copy visible data to a New Work Book
    By Mysore in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 03-15-2012, 11:44 PM
  3. Replies: 3
    Last Post: 03-02-2012, 06:42 AM
  4. Macro to copy data from one excel work book and pase it in another
    By jmsgdin in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 05-18-2011, 06:34 AM
  5. Macro to copy sheet from closed work book and overwrite if sheet already exists
    By munkee in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 11-23-2009, 06:36 PM

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