+ Reply to Thread
Results 1 to 4 of 4

Macro or VBA Help needed for Advanced Filter and auto update destination workbooks

  1. #1
    Forum Contributor
    Join Date
    10-30-2011
    Location
    Doha
    MS-Off Ver
    MS office 365
    Posts
    701

    Unhappy Macro or VBA Help needed for Advanced Filter and auto update destination workbooks

    Hi Folks,

    I think this is an extremely tough one, not even sure this is possible!

    I need a Macro or VBA to do an advanced filter based on multiple criteria (Filter Criteria = Cell values of "T2 to xldown), then copy advanced filtered data and paste it into new sheets individually (e.g. Add sheets for "SDG", "OPD", OTD" etc.). Please note that the criteria may vary.
    Also I have some other workbooks which are I already saved in a share drive ("D:\Public\users\") the workbooks names are same as Filter Criteria (e.g. "SDG.xlsx", "OPD.xlsx", "OTD.xlsx"). After run the advanced filter Macro or VBA then I want to update all these workbooks with advanced filtered data. Is this possible by using a Macro or VBA?.

    I have attached a excel file of what I'm trying to accomplish. Thanks in advance for your expertise!

    Joshi
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    01-15-2007
    Location
    Brisbane, Australia
    MS-Off Ver
    2007
    Posts
    6,591

    Re: Macro or VBA Help needed for Advanced Filter and auto update destination workbooks

    Joshi

    The code below will create the sheets and do the filtering in the current workbook.

    Please Login or Register  to view this content.
    rylo

  3. #3
    Forum Contributor
    Join Date
    10-30-2011
    Location
    Doha
    MS-Off Ver
    MS office 365
    Posts
    701

    Re: Macro or VBA Help needed for Advanced Filter and auto update destination workbooks

    Hi rylo,

    The code is not working. Its cleared all the data from my Master Sheet and added some sheets with only the headers of the master sheet.

    Please help me to fix the issue.

    Thanks,

    Joshi

  4. #4
    Forum Expert
    Join Date
    01-15-2007
    Location
    Brisbane, Australia
    MS-Off Ver
    2007
    Posts
    6,591

    Re: Macro or VBA Help needed for Advanced Filter and auto update destination workbooks

    Hi

    I opened your example file, went to the existing macro module, and inserted the code from post #2. Selected and ran the code. It created 4 new sheets, filtered the data, and didn't touch the master sheet.

    Exactly what are you doing?

    rylo

+ 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