+ Reply to Thread
Results 1 to 12 of 12

I need to deselect 2 items from a filter

  1. #1
    Registered User
    Join Date
    01-11-2012
    Location
    Kent, England
    MS-Off Ver
    Excel 2010
    Posts
    96

    I need to deselect 2 items from a filter

    Hi Guys

    I have a sheet that I use to download data and make it a bit more user friendly. The downloaded data has categories and they are different each time. I would like to deselect CAT 01 & CAT 02 when I import the data. I have searched for some code but haven't found anything that works yet. any help greatly appreciated

    Cheers
    Attached Files Attached Files
    Cheers

    Ross

  2. #2
    Forum Expert
    Join Date
    12-24-2007
    Location
    Alsace - France
    MS-Off Ver
    MS 365 Office Suite
    Posts
    5,066

    Re: I need to deselect 2 items from a filter

    See next code
    Please Login or Register  to view this content.
    - Battle without fear gives no glory - Just try

  3. #3
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,483

    Re: I need to deselect 2 items from a filter

    Check it out.

    Please Login or Register  to view this content.

  4. #4
    Forum Expert torachan's Avatar
    Join Date
    12-27-2012
    Location
    market harborough, england
    MS-Off Ver
    Excel 2010
    Posts
    4,305

    Re: I need to deselect 2 items from a filter

    Another approach.
    Produces second sheet with CAT 01 & CAT 02 removed.
    As sheet 1 is updated sheet 2 can be overwritten by TRANSFER.
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    01-11-2012
    Location
    Kent, England
    MS-Off Ver
    Excel 2010
    Posts
    96

    Re: I need to deselect 2 items from a filter

    Hi PCI. Thanks for this but when I tried it it deselected everything in the list. I have tried various code with the criteria <>CAT 01 & <>02 & it always deselects everything

    Thanks
    Last edited by rosshkerr; 12-21-2018 at 10:17 PM.

  6. #6
    Registered User
    Join Date
    01-11-2012
    Location
    Kent, England
    MS-Off Ver
    Excel 2010
    Posts
    96

    Re: I need to deselect 2 items from a filter

    Hi davesexcel. this seems to remove all CAT 01 & 02s and I need to keep them in so I can check them if necessary

    Thanks

  7. #7
    Registered User
    Join Date
    01-11-2012
    Location
    Kent, England
    MS-Off Ver
    Excel 2010
    Posts
    96

    Re: I need to deselect 2 items from a filter

    Hi torachan. I tried this and it sort of works but I only really need to deselect those 2 items then I can reselect them again if I need to
    #
    Thanks

  8. #8
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,565

    Re: I need to deselect 2 items from a filter

    Quote Originally Posted by rosshkerr View Post
    I would like to deselect CAT 01 & CAT 02 when I import the data.
    Do you mean like this?
    Please Login or Register  to view this content.

  9. #9
    Registered User
    Join Date
    01-11-2012
    Location
    Kent, England
    MS-Off Ver
    Excel 2010
    Posts
    96

    Re: I need to deselect 2 items from a filter

    Hi jindon. Thanks but this leaves all categories selected and removes the filter

  10. #10
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,565

    Re: I need to deselect 2 items from a filter

    What do you mean "Select"?
    Do you want to filter out CAT1 & CAT2?
    Please Login or Register  to view this content.

  11. #11
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,483

    Re: I need to deselect 2 items from a filter

    Quote Originally Posted by rosshkerr View Post
    Hi davesexcel. this seems to remove all CAT 01 & 02s and I need to keep them in so I can check them if necessary

    Thanks
    You asked to deselect the two items, then complain because the code deselects the two items.

  12. #12
    Registered User
    Join Date
    01-11-2012
    Location
    Kent, England
    MS-Off Ver
    Excel 2010
    Posts
    96

    Re: I need to deselect 2 items from a filter

    Hi davesexcel. In the filter I currently select (i.e. tick) all the boxes for the filter. Then I un-tick CAT 01 & 02. I don't want to remove them as I sometimes need to check them later

    thanks

+ 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. Select/Deselect multiple items from data validation drop down
    By dsklein85 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-18-2016, 11:17 AM
  2. Data Validation - Selecting multiple items with ability to deselect items
    By dsklein85 in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 03-12-2016, 09:02 AM
  3. [SOLVED] Code to Deselect items in Pivot table
    By pdalal in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-21-2014, 03:08 PM
  4. Deselect all pivot slicer items
    By K1M6O in forum Excel Charting & Pivots
    Replies: 2
    Last Post: 05-02-2014, 04:37 AM
  5. Deselect items in list box on userform
    By welchs101 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 09-15-2012, 12:21 PM
  6. Macro to deselect certain items
    By thedon_1 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-01-2011, 05:15 AM
  7. Pivot Table Deselect all items
    By Keyur in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-06-2005, 02:06 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