+ Reply to Thread
Results 1 to 4 of 4

How to create custom worksheet protection

  1. #1
    Forum Contributor
    Join Date
    10-23-2014
    Location
    Kolding, Denmark
    MS-Off Ver
    MS Office 2010
    Posts
    169

    How to create custom worksheet protection

    Hi,

    I have this macro that protects all my sheets in a workbook, and still allows it to filter..

    But, i want it to allow more things.

    I want to set up the protection as followed (with password):

    Select locked cells
    Select unlocked cells
    Format cells
    Use AutoFilter
    Edit objects
    Edit Scenarios


    Please Login or Register  to view this content.
    filter1.png
    filter2.png

    Anyone who can help ?

    Thank you in advance

  2. #2
    Forum Guru sktneer's Avatar
    Join Date
    04-30-2011
    Location
    Kanpur, India
    MS-Off Ver
    Office 365
    Posts
    9,649

    Re: How to create costume worksheet protection

    If you simply record a macro while protecting a sheet allowing the above said permissions, you will get the following code..

    Please Login or Register  to view this content.
    Try to include the above code into your code like this and see if this works.....

    Please Login or Register  to view this content.
    Does this help?
    Regards
    sktneer


    Treat people the way you want to be treated. Talk to people the way you want to be talked to.
    Respect is earned NOT given.

  3. #3
    Forum Contributor
    Join Date
    10-23-2014
    Location
    Kolding, Denmark
    MS-Off Ver
    MS Office 2010
    Posts
    169

    Re: How to create costume worksheet protection

    It works perfect, thank you.

  4. #4
    Forum Guru sktneer's Avatar
    Join Date
    04-30-2011
    Location
    Kanpur, India
    MS-Off Ver
    Office 365
    Posts
    9,649

    Re: How to create custom worksheet protection

    You're welcome. Glad to help.

+ 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. Can't use Custom Views and adjacent sheet protection
    By keithwins in forum Excel General
    Replies: 1
    Last Post: 03-24-2015, 05:37 PM
  2. [SOLVED] vba create a worksheet custom order
    By vio.coman in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-24-2014, 10:53 AM
  3. How to create custom tabs using CUSTOM UI EDITOR in excel 2007
    By narendrabr in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-10-2014, 12:38 PM
  4. [SOLVED] Worksheet protection is gone and only wokbook protection can be se
    By Eric C. in forum Excel General
    Replies: 4
    Last Post: 05-02-2006, 11:55 AM
  5. [SOLVED] Password protection custom tool bar
    By PCOR in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 03-20-2005, 10:06 PM

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