+ Reply to Thread
Results 1 to 4 of 4

Need to copy filtered rows from multiple workbooks in a folder to an existing workbook

  1. #1
    Registered User
    Join Date
    10-19-2012
    Location
    San Diego
    MS-Off Ver
    Excel 2003
    Posts
    2

    Need to copy filtered rows from multiple workbooks in a folder to an existing workbook

    Hello, I am an extremely limited VB user and I need assistance in developing a script. I need a script that will allow me to pull rows from multiple workbooks in a folder (named_workbook1.xls thru named_workbook27.xls). I only want to pull rows that match a specific list of values in an existing spreadsheet (OPS_Summary.xls). I then want the matching row(s) to populate a worksheet.

    The individual workbooks have information on specific locations (rooms). This information is in column 'L' on each worksheet of each workbook. Each workbook has information on up to three worksheets and I want to filter and copy the information from all worksheets. I want the filter to identify pertinent rows that match a list of existing room numbers that is in a worksheet in OPS_Summary.xls. I then want this information to be populated in OPS_Summary.xls based on which room number it matches. I do not want to add function to each individual sheet in the folder, I only want the macro to live in OPS_Summary.xls.

    I have used get_filter_macro example from rondebruin.nl but have not been able to make the example functions work. I have used his code and attempted to point to column 'L' but it does not work for me. I am probably doing it wrong.

    Any assistance that anyone may be able to provide is GREATLY appreciated.

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

    Re: Need to copy filtered rows from multiple workbooks in a folder to an existing workbook

    Sure this is doable but you need to provide more info.

    Why not attach a sample file? Also attach a copy (or sample) of your OPS_Summary file so we can see what are the criteria for the filters.

    To Attach a File:

    1. Click on Go Advanced
    2. In the frame Attach Files you will see the button Manage Attachments
    3. Click the button.
    4. A new window will open titled Manage Attachments - Excel Forum.
    5. Click the Browse... button to locate your file for uploading.
    6. This will open a new window File Upload.
    7. Once you have located the file to upload click the Open button. This window will close.
    8. You are now back in the Manage Attachments - Excel Forum window.
    9. Click the Upload button and wait until the file has uploaded.
    10. Close the window and then click Submit.
    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]

  3. #3
    Registered User
    Join Date
    10-19-2012
    Location
    San Diego
    MS-Off Ver
    Excel 2003
    Posts
    2

    Re: Need to copy filtered rows from multiple workbooks in a folder to an existing workbook

    Thank you for your interest in helping. I have attached the workbook. I am attempting to use the
    ' RDB_Filter_Data in the "Get_Filter_Macro" module ' from this website: http://www.rondebruin.nl/fso.htm

    The data is to be filtered against the list of room numbers in sheet5 of the attached file. Again, thank you for any assistance you can lend.
    Attached Files Attached Files

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

    Re: Need to copy filtered rows from multiple workbooks in a folder to an existing workbook

    It will be good if you explain what you need in detail. This is what i have understood so far and you can correct me if i am wrong -

    1. You have multiple workbooks similar to the sample file in one folder.
    2. You want to consolidate the data from each file.
    3. The data is present in OPS Spaces.
    4. Only rows that have data in column D should be consolidated.

+ 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