+ Reply to Thread
Results 1 to 8 of 8

Copy filter data from Master workbook to Result workbook

  1. #1
    Forum Contributor
    Join Date
    10-30-2019
    Location
    Agra
    MS-Off Ver
    Office 2010
    Posts
    241

    Copy filter data from Master workbook to Result workbook

    Hi,

    We have two separate workbook in different location

    1. Desktop Workbook Name - Master
    2. Desktop Workbook Name - Result

    In master file we have data in Sheet1!A1:H600

    required a vba which import all filter data which match "Result workbook Sheet1!A1 data" with "Master Workbook Sheet1!C2:C"

    suppose in Result workbook Sheet1!A1 = Ronaldo
    then select all data, filter through C column, filter criteria "Ronaldo"
    copy and paste values in Result workbook sheet1

    we have same header in both workbook

  2. #2
    Forum Contributor
    Join Date
    10-30-2019
    Location
    Agra
    MS-Off Ver
    Office 2010
    Posts
    241

    Re: Copy filter data from Master workbook to Result workbook

    find the solution, little different, but work in my case, pasting solution here so if anyone required, he can check

    HTML Code: 
    it will be more helpful us, if we can Type the filter criteria in a cell

  3. #3
    Forum Expert
    Join Date
    05-29-2020
    Location
    NH USA
    MS-Off Ver
    365
    Posts
    2,103

    Re: Copy filter data from Master workbook to Result workbook

    To place filter criteria in a cell, say C1 = "Ronaldo" then

    Please Login or Register  to view this content.

  4. #4
    Forum Contributor
    Join Date
    10-30-2019
    Location
    Agra
    MS-Off Ver
    Office 2010
    Posts
    241

    Re: Copy filter data from Master workbook to Result workbook

    Thanks maniacb

    its working perfect

  5. #5
    Forum Contributor
    Join Date
    10-30-2019
    Location
    Agra
    MS-Off Ver
    Office 2010
    Posts
    241

    Re: Copy filter data from Master workbook to Result workbook

    Hi maniacb

    can we do this

    .AutoFilter field:=5, Criteria1:=[C1].value
    .SpecialCells(xlCellTypeVisible).Copy

    can we change Criteria1:=[C1].value
    to
    C1 to
    Workbooks("BackTEst.xlsx").activesheet.Range("A1").Copy _
    MasterWorkbook.Worksheets("Master").Range("A1")

    or

    C1 to workbooks("BackTEst.xlsx").activesheet.range("A1")

  6. #6
    Forum Expert
    Join Date
    05-29-2020
    Location
    NH USA
    MS-Off Ver
    365
    Posts
    2,103

    Re: Copy filter data from Master workbook to Result workbook

    Yes, you can change it, but make sure workbook BackTEst is open.

  7. #7
    Forum Contributor
    Join Date
    10-30-2019
    Location
    Agra
    MS-Off Ver
    Office 2010
    Posts
    241

    Re: Copy filter data from Master workbook to Result workbook

    Hi maniacb

    but there is some problem in my formula, when we try to get the data in c1

    Workbooks("BackTEst.xlsx").activesheet.Range("A1").Copy _
    MasterWorkbook.Worksheets("Master").Range("A1")

    or

    workbooks("BackTEst.xlsx").activesheet.range("A1")

  8. #8
    Forum Contributor
    Join Date
    10-30-2019
    Location
    Agra
    MS-Off Ver
    Office 2010
    Posts
    241

    Re: Copy filter data from Master workbook to Result workbook

    Hi maniacb

    Done with some changes, thanks for your guideline and giving me motivation to do this


    HTML Code: 

+ 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. [SOLVED] copy data from multiple workbook to a master workbook
    By Ajay45822 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 12-28-2020, 02:29 AM
  2. Copy Data from different workbook to master report workbook
    By spider_min in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 12-08-2018, 11:22 AM
  3. Copy the Data from Multiple workbook to Master Workbook as Conslidated
    By venugosr in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 03-19-2017, 01:32 AM
  4. Replies: 12
    Last Post: 07-29-2014, 01:06 PM
  5. Copy paste last row from each workbook in master workbook on header criteria
    By farrukh in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 10-30-2013, 07:28 AM
  6. Replies: 2
    Last Post: 09-11-2012, 09:42 AM
  7. Replies: 3
    Last Post: 05-17-2012, 11:25 AM

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