+ Reply to Thread
Results 1 to 4 of 4

Sheet Protection interfears with Change event

  1. #1
    Forum Contributor
    Join Date
    10-02-2013
    Location
    Houston, TX
    MS-Off Ver
    office 365
    Posts
    638

    Sheet Protection interfears with Change event

    Why does a worksheet change event not work if the sheet is protected but the cell that the event is running in is not a protected / Hidden cell.

  2. #2
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Sheet Protection interfears with Change event

    You will have to update your protection to include the UserInterfaceOnly:=True parameter. This parameter must be reset each time you open the workbook, it doesn't "persist".

    Once you have reset the protection to include that parameter, your macros will continue to work.
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  3. #3
    Forum Contributor
    Join Date
    10-02-2013
    Location
    Houston, TX
    MS-Off Ver
    office 365
    Posts
    638

    Re: Sheet Protection interfears with Change event

    how would I add that here is the code

    Please Login or Register  to view this content.

  4. #4
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Sheet Protection interfears with Change event

    Nowhere. You need to create a macro to reapply the protection to your sheet when you first open your workbook. You can put it into a Workbook_Open() event in the ThisWorkbook module so it runs automatically when the workbook starts. This is where you will add the UserInterfaceOnly:=True option to the regular protection code.

+ 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. [SOLVED] change event AND calculate event on the same sheet
    By lauriejerome in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-14-2013, 03:54 PM
  2. How to change the protection range in the sheet through macro
    By tk1205 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 08-17-2009, 07:20 AM
  3. Sheet Change Event wont work
    By Strugglin in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-02-2009, 10:35 AM
  4. [SOLVED] Updating another sheet using an On Change event
    By Steve Barber in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-25-2005, 11:06 AM
  5. [SOLVED] Change Event on Sheet Objects
    By Ross Culver in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 02-10-2005, 08: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