+ Reply to Thread
Results 1 to 2 of 2

Allow filtering on all columns

  1. #1
    Forum Contributor
    Join Date
    11-06-2021
    Location
    Tripoli
    MS-Off Ver
    Still using 2007 in 2023
    Posts
    289

    Red face Allow filtering on all columns

    Hello guys,
    I hope you are all doing fine.
    I am a newbie with vba code with only a simple enquiry.
    In my code here, i have locked all my sheet except column C.
    I need only to allow filtering on any column based on the fields of first row.
    What amendments should be made to my code?
    Thanks a lot.

    Please Login or Register  to view this content.

  2. #2
    Valued Forum Contributor
    Join Date
    05-03-2022
    Location
    Halifax,Canada
    MS-Off Ver
    365
    Posts
    326

    Re: Allow filtering on all columns

    As long as the column filters are established before protecting the sheet, the following line of code will permit them to be used even when sheet is locked/protected

    Please Login or Register  to view this content.

    Or as it would look in your code ...
    Please Login or Register  to view this content.
    please consider clicking "add reputation" if this has helped you
    Last edited by nimrod1313; 08-17-2022 at 10:41 PM.

+ 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: 7
    Last Post: 08-11-2018, 02:20 AM
  2. Automate hiding columns, adding columns, inserting formulas, and filtering
    By hpatel517 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 09-27-2016, 11:17 AM
  3. [SOLVED] VBA Filtering Columns based on Cell Value for multiple columns
    By MikeRoot in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 08-31-2014, 08:07 AM
  4. [SOLVED] Filtering Columns when some adjacent columns are blank
    By rg1954 in forum Excel General
    Replies: 5
    Last Post: 04-16-2013, 10:00 AM
  5. Replies: 5
    Last Post: 10-01-2010, 05:00 AM
  6. Filtering columns
    By maximpinto in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 05-24-2009, 11:13 PM
  7. Filtering Columns?!
    By rjmills18 in forum Excel General
    Replies: 1
    Last Post: 07-11-2008, 04: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