+ Reply to Thread
Results 1 to 12 of 12

How to disable AutoFilter

  1. #1
    Forum Contributor
    Join Date
    08-14-2012
    Location
    USA
    MS-Off Ver
    Excel 2007, MS 365 (Windows 10 Pro 64-bit)
    Posts
    810

    How to disable AutoFilter

    Hello All,
    I have a sample in attached and please help me to disable all AutoFilter by code.

    Regards,
    tt3
    Attached Files Attached Files
    Last edited by tuongtu3; 10-06-2013 at 12:46 AM. Reason: Solved

  2. #2
    Registered User
    Join Date
    04-25-2013
    Location
    Montreal, Quebec
    MS-Off Ver
    Excel 2010
    Posts
    76

    Re: How to disable AutoFilter

    What version of Excel do you have?

    If 2010:
    choose DATA - then choose FILTER

    You need to be in the first cell that you want the filter removed from. You need to do this for each row. In your case, B2, B6, etc.

  3. #3
    Forum Contributor
    Join Date
    08-14-2012
    Location
    USA
    MS-Off Ver
    Excel 2007, MS 365 (Windows 10 Pro 64-bit)
    Posts
    810

    Re: How to disable AutoFilter

    @Johfra:
    Thank for your help. I'm using Excel2007 and I would like marco to automate.

    Regards,
    tt3

  4. #4
    Registered User
    Join Date
    04-25-2013
    Location
    Montreal, Quebec
    MS-Off Ver
    Excel 2010
    Posts
    76

    Re: How to disable AutoFilter

    Oh, you want this to be done through macro?
    What I've done for other spreadsheets is I created a button with "Filter On" and "Filter Off". Much easier for the user.
    Do you know how to create macros? (just to know how to help you better)

  5. #5
    Forum Contributor
    Join Date
    08-14-2012
    Location
    USA
    MS-Off Ver
    Excel 2007, MS 365 (Windows 10 Pro 64-bit)
    Posts
    810

    Re: How to disable AutoFilter

    Hi Johfra,
    Can you create a macro to "Filter Off" per my sample attached in post# 1?
    Thank you for your help.

    Regards,
    tt3

  6. #6
    Forum Expert Alf's Avatar
    Join Date
    03-13-2004
    Location
    Gothenburg/Mullsjoe, Sweden
    MS-Off Ver
    Excel 2019 and not sure I like it
    Posts
    4,758

    Re: How to disable AutoFilter

    As far as I can see your sheet contains a number of tables!

    You got "Table1" to "Table4" + a "Table6". In order to get rid of these "table formats" one really should know the number of tables. Still I'v written a macro that checks up to 10 tables and you can increase this if needed be.

    Please Login or Register  to view this content.
    Alf

  7. #7
    Forum Contributor
    Join Date
    08-14-2012
    Location
    USA
    MS-Off Ver
    Excel 2007, MS 365 (Windows 10 Pro 64-bit)
    Posts
    810

    Re: How to disable AutoFilter

    Hi Alf,
    The code work with sample in attached but it did not work with the real ws. Please take a look and see if there's anything you can help
    (This is a real ws but I deleted all data).

    Regards,
    tt3
    Attached Files Attached Files

  8. #8
    Forum Expert nilem's Avatar
    Join Date
    10-22-2011
    Location
    Ufa, Russia
    MS-Off Ver
    2013
    Posts
    3,377

    Re: How to disable AutoFilter

    maybe
    Please Login or Register  to view this content.

  9. #9
    Forum Expert Alf's Avatar
    Join Date
    03-13-2004
    Location
    Gothenburg/Mullsjoe, Sweden
    MS-Off Ver
    Excel 2019 and not sure I like it
    Posts
    4,758

    Re: How to disable AutoFilter

    You latest uploded file has tables 22, tables 36, tables 38 and tables 44 so if you wish to use my macro change

    Please Login or Register  to view this content.
    to

    Please Login or Register  to view this content.
    But have you tried nilem's code? Looks better than mine since he don't use a hard coded integre.

    Alf

  10. #10
    Forum Contributor
    Join Date
    08-14-2012
    Location
    USA
    MS-Off Ver
    Excel 2007, MS 365 (Windows 10 Pro 64-bit)
    Posts
    810

    Re: How to disable AutoFilter

    @Nilem & Alf: Both codes work perfect. Thank yu very much for your time and help.

    One question:
    You latest uploaded file has tables 22, tables 36, tables 38 and tables 44 so if you wish to use my macro change
    How to check the table number#???

    Regards,
    tt3

  11. #11
    Forum Expert nilem's Avatar
    Join Date
    10-22-2011
    Location
    Ufa, Russia
    MS-Off Ver
    2013
    Posts
    3,377

    Re: How to disable AutoFilter

    something like
    Please Login or Register  to view this content.

  12. #12
    Forum Contributor
    Join Date
    08-14-2012
    Location
    USA
    MS-Off Ver
    Excel 2007, MS 365 (Windows 10 Pro 64-bit)
    Posts
    810

    Re: How to disable AutoFilter

    Thank you all for your time and help.

    Regards,
    tt3

+ 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: 1
    Last Post: 06-16-2013, 12:35 AM
  2. Replies: 0
    Last Post: 08-15-2012, 08:13 AM
  3. Enable/disable copy paste (disable part not working)
    By timtim89 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-08-2012, 07:23 PM
  4. Disable AutoFilter Sort?
    By incjourn in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 04-23-2009, 09:11 AM
  5. Disable AutoFilter function for specific rows
    By ebneterc in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 10-19-2007, 08:33 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