+ Reply to Thread
Results 1 to 2 of 2

AutoFilter Enable

  1. #1
    Forum Contributor
    Join Date
    01-25-2021
    Location
    Atlanta, Georgia
    MS-Off Ver
    365
    Posts
    144

    AutoFilter Enable

    I have a macro that protects and unprotects sheets. I realized that once I protect, default only gives users option to select any given cell. I would like them to also use the autofilter option. What is a code to activate "Use AutoFilter" before sheet gets protected? So far this is what I have but it is not working:

    Sub wsProtect()

    Sheet1.EnableAutoFilter = True
    Sheet1.Protect "1234"

    End Sub

  2. #2
    Valued Forum Contributor
    Join Date
    03-24-2020
    Location
    Thailand
    MS-Off Ver
    Office 2016
    Posts
    897

    Re: AutoFilter Enable

    Hi there,

    Try:

    Please Login or Register  to view this content.
    If your Question is answered; please mark it SOLVED. If you are happy with a member's solution, say 'Thanks' and click the 'Star' to Add Reputation.

+ 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. Enable autofilter
    By Immortal2014 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-20-2019, 06:15 AM
  2. Enable autofilter
    By Immortal2014 in forum Excel General
    Replies: 1
    Last Post: 02-20-2019, 06:01 AM
  3. Automatically enable autofilter
    By GEMINI528 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-12-2013, 08:48 PM
  4. [SOLVED] How Can I Enable AutoFilter on a Password-Protected Table?
    By snapfade in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 10-29-2013, 12:45 PM
  5. enable autofilter/ expand collapse
    By mitelkm in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 01-22-2008, 01:53 PM
  6. [SOLVED] How do I enable a disabled Autofilter in Excel
    By JimFraserPE in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-29-2006, 12:10 PM
  7. enable autofilter in a protected worksheet in Excel 97
    By WooGHeR in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 03-25-2005, 01:06 PM

Tags for this Thread

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