+ Reply to Thread
Results 1 to 3 of 3

protected sheet, allow for macro to work

  1. #1
    Forum Contributor
    Join Date
    11-26-2010
    Location
    usa
    MS-Off Ver
    Office 365
    Posts
    1,224

    protected sheet, allow for macro to work

    Hello

    I have this macro on a worksheet

    Please Login or Register  to view this content.

    i put a password in to protect the file, but now it appears the macro is not working

    i receive the following error
    "unable to set auto filter property of the worksheet class"


    can someone pls help!

  2. #2
    Forum Expert Ron Coderre's Avatar
    Join Date
    03-22-2005
    Location
    Boston, Massachusetts
    MS-Off Ver
    2013, 2016, O365
    Posts
    6,996

    Re: protected sheet, allow for macro to work

    Easiest is to set the protection via VBA and use the UserInterfaceOnly option.

    Example:
    Please Login or Register  to view this content.
    Set up that way, macros can run unencumbered, but users are confronted with protection restrictions.

    Does that help?
    Ron
    Former Microsoft MVP - Excel (2006 - 2015)
    Click here to see the Forum Rules

  3. #3
    Forum Contributor
    Join Date
    11-26-2010
    Location
    usa
    MS-Off Ver
    Office 365
    Posts
    1,224

    Re: protected sheet, allow for macro to work

    Hello

    so how would the macro look? sorry...im a little confused as to where the placement of that might go in the code....can u pls advise..thx u

    i have 4 worksheets that use that same code..i.e. in VBA, 4 worksheets contain that macro
    Last edited by jw01; 08-22-2011 at 03:00 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