+ Reply to Thread
Results 1 to 3 of 3

Macro doesnt work when the sheet is protected

  1. #1
    Registered User
    Join Date
    05-13-2010
    Location
    Ireland
    MS-Off Ver
    Excel 2007
    Posts
    90

    Macro doesnt work when the sheet is protected

    I have this very simple macro that clears some cells when i press "clear" button.

    Although when i protect the sheet it doesnt work.

    Is there a way to avoid this?

    Below the code
    Please Login or Register  to view this content.
    Thanks
    Last edited by tsioumiou; 10-24-2011 at 10:25 AM.

  2. #2
    Forum Guru romperstomper's Avatar
    Join Date
    11-04-2008
    Location
    A1
    MS-Off Ver
    Most
    Posts
    12,302

    Re: Macro doesnt work when the sheet is protected

    Have the macro unprotect the sheet first and then reprotect at the end:
    Please Login or Register  to view this content.
    Remember what the dormouse said
    Feed your head

  3. #3
    Registered User
    Join Date
    05-13-2010
    Location
    Ireland
    MS-Off Ver
    Excel 2007
    Posts
    90

    Re: Macro doesnt work when the sheet is protected

    Quote Originally Posted by romperstomper View Post
    Have the macro unprotect the sheet first and then reprotect at the end:
    Please Login or Register  to view this content.
    Working!
    Thanks a lot

+ 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