+ Reply to Thread
Results 1 to 2 of 2

Autofilter on protected work book?

  1. #1
    Muppet
    Guest

    Autofilter on protected work book?

    Autofilter works on a protected workbook, but not when it is a line in a
    macro, e.g.:

    Selection.AutoFilter Field:=1, Criteria1:="YES"

    It cause a macro error. This is true even if I enable 'Allow all user of
    the workbook to Use Autofilter'. I'm sure I've done this before and it
    worked, but not now.

    Does anyone know if this is a bug in 2003? Or a way around it? Or another
    way of selecting a number of rows by a single criterion (in a macro)?

  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 morning Muppet

    Does this article help?

    http://www.contextures.com/xlautofilter03.html#Protect

    HTH

    DominicB

+ 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