+ Reply to Thread
Results 1 to 2 of 2

Use Autofilter in Protected sheet

  1. #1
    Registered User
    Join Date
    09-14-2007
    Posts
    1

    Use Autofilter in Protected sheet

    Hi Everyone,

    I am new to Macros. I have the folloing requirement.

    In Folder 'X' there is an excel file 'X' containing data.
    now i have to run macro from another excel 'Y' which should take excel file 'X' and convert data font to specific format and also protect it.
    Was able to complete this requirment successfully.
    Now user want to use auto filter funtionality in protected sheet.
    I cannot write any code in "X" excel file where there is a data.
    In excel "Y" where i have written Macro, i have tried using the following code

    If Not ActiveSheet.AutoFilterMode Then
    ActiveSheet.Range("A1").autofilter
    also
    ActiveSheet.EnableAutoFilter = True


    but was not able to use auto filter in protected sheet.
    Can anyone please help me in solving this Issue.
    Thanks in Advance.

    Regards,
    Swapna.

  2. #2
    Forum Expert dominicb's Avatar
    Join Date
    01-25-2005
    Location
    Lancashire, England
    MS-Off Ver
    MS Office 2000, 2003, 2007 & 2016 365
    Posts
    4,867

    Smile

    Good afternoon swapnasetty

    ...and welcome to the forum!!

    What version of Excel are you using?
    If you are using Excel 2002 or greater, when you protect the sheet, scroll down in the protect sheet dialog through all the options, and select Use Autofilter (it's fourth from the bottom).

    HTH

    DominicB
    Please familiarise yourself with the rules before posting. You can find them here.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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