+ Reply to Thread
Results 1 to 3 of 3

Autofilter VBA Macro to filter out individual columns across entire workbook

  1. #1
    Registered User
    Join Date
    01-18-2017
    Location
    MA
    MS-Off Ver
    Office 365
    Posts
    2

    Autofilter VBA Macro to filter out individual columns across entire workbook

    Hello,

    I'm trying to figure out how to write a bit of code to apply a couple filters across my entire workbook for specific text fields of data in specific columns.

    The columns headers and associated filters I'm using on each independent sheet (via data validation) are the same.

    Simply put...I'd like to have multiple buttons (for each filter I'd like to apply) on master sheet that when clicked filter the entire work for a specific text field in a specific column. To be clear - the master sheet does not have the same configuration as the working sheets and does not need to be filtered.

    I'm able to get the first filter (Column N; text field = "Public") working using the code below:
    Please Login or Register  to view this content.
    But when I try to modify this code for my next filter (Column P; text field = "Active") the whole thing craps out and only shows the top row of each sheet where the header describing the filter criteria is located. Code used is below.
    Please Login or Register  to view this content.
    I'm sure there's a simple solution here but after 3 hours of googling and trying this and that - I need some help.

    Thanks in advance for your time.

    Regards,
    Patrick
    Last edited by Leith Ross; 01-20-2017 at 03:23 PM. Reason: Added Code Tags

  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: Autofilter VBA Macro to filter out individual columns across entire workbook

    Hello prnetreba,

    Welcome to the Forum!

    This problem would be easier to sort out with acopy of your workbook.

    To Attach a File:
    1. Scroll down to the window below your post Additional Options
    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.
    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
    01-18-2017
    Location
    MA
    MS-Off Ver
    Office 365
    Posts
    2

    Re: Autofilter VBA Macro to filter out individual columns across entire workbook

    All set on the upload. Thanks Leith.

+ 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. Macro to Filter by PVT, Copy and Create Individual Files
    By GCLIFTON in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 11-09-2016, 01:48 PM
  2. Macro to input data from individual workbook to Master workbook
    By garfield0304 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 01-31-2013, 07:42 PM
  3. [SOLVED] Macro to group columns based on specific criteria in entire workbook
    By kbkumar in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 10-09-2012, 04:47 AM
  4. Macro to copy entire columns with matching dates from another workbook
    By rocksan in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-28-2012, 01:23 PM
  5. Replies: 0
    Last Post: 02-14-2012, 12:34 PM
  6. Replies: 2
    Last Post: 02-02-2012, 01:22 AM
  7. How can I sort entire rows by individual columns?
    By pjplib in forum Excel - New Users/Basics
    Replies: 3
    Last Post: 10-10-2007, 08:10 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