+ Reply to Thread
Results 1 to 4 of 4

Undo a filter on a particular column, leaving the filter on another column

  1. #1
    Forum Contributor
    Join Date
    03-10-2014
    Location
    Sheffield
    MS-Off Ver
    Excel 2010
    Posts
    180

    Undo a filter on a particular column, leaving the filter on another column

    I have a spreadsheet with a number of columns and headers. I have a filter applied to column B which needs to remain as it is (this column is hidden to the user as they don't need to see it).
    I have a macro that allows a user to quickly filter out certain rows of the data. I also need a macro which will unfilter that action but leave column B as it is, so I can't use ShowAllData.

    How do I unfilter just column A?

    This is my code:-

    Please Login or Register  to view this content.

  2. #2
    Valued Forum Contributor kasan's Avatar
    Join Date
    07-22-2009
    Location
    Riga, Latvia
    MS-Off Ver
    Excel 2010
    Posts
    680

    Re: Undo a filter on a particular column, leaving the filter on another column

    May be you could do like this:
    Turn off screeen updates
    ShowAllData
    Apply filter on column B
    Turn on screeen updates

  3. #3
    Forum Contributor
    Join Date
    03-10-2014
    Location
    Sheffield
    MS-Off Ver
    Excel 2010
    Posts
    180

    Re: Undo a filter on a particular column, leaving the filter on another column

    I have multiple spreadsheets and the filter on column B is different for every one so I need code that will work across the board.

    So just undo what has been done to column A i.e. unfilter it to show all in column A but leave column B as it is.

    I also need to know the specific code to write and where to put it in my current code.

  4. #4
    Forum Contributor
    Join Date
    03-10-2014
    Location
    Sheffield
    MS-Off Ver
    Excel 2010
    Posts
    180

    Re: Undo a filter on a particular column, leaving the filter on another column

    I have managed to fix this myself. Will post the code once completed.

+ 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. Replies: 8
    Last Post: 06-02-2015, 01:51 PM
  2. Replies: 1
    Last Post: 12-12-2014, 06:46 AM
  3. Replies: 6
    Last Post: 10-16-2014, 08:42 AM
  4. Replies: 0
    Last Post: 01-16-2014, 10:55 AM
  5. Replies: 9
    Last Post: 01-04-2013, 09:56 AM
  6. How do I transfer User-Defined filter parameters to then filter another column?
    By fiqulupo in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-28-2012, 07:05 PM
  7. Auto Filter by InputBox - filter by user defined column
    By Originalgoth in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-25-2010, 12:12 AM

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