+ Reply to Thread
Results 1 to 1 of 1

Autofilter issue using macro when locking worksheets

Hybrid View

  1. #1
    Registered User
    Join Date
    08-03-2011
    Location
    Manila, Philippines
    MS-Off Ver
    Excel 2007
    Posts
    1

    Autofilter issue using macro when locking worksheets

    Hi,

    I've been browsing the forum and found a similar concern but didn't get any result.

    i have a macro that locks my worksheets yet it Enables AutoFilter for all the sheets with filtering.
    when testing the worksheets - it allows me to use the Filter.
    but after re-launching the excel file -- the filter button is there but it won't allow me to click on it.
    my sheets are still locked like i wanted it but the autofilter fails.

    Below is the code i used --- dragged and tracked around the web

    Public Sub lock1()
    
    
    For a = 1 To Sheets.Count
    
    With Sheets(a)
        .Protect Password:="password", DrawingObjects:=True, _
        contents:=True, Scenarios:=True, _
        UserInterfaceOnly:=True
        .EnableAutoFilter = True
        
    End With
     
    
    
    Next
    End Sub
    Thank you in advance,
    Last edited by rajiraji; 02-18-2013 at 11:59 PM.

+ 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