+ Reply to Thread
Results 1 to 2 of 2

Clear protected cells

  1. #1
    Forum Contributor
    Join Date
    12-26-2006
    Posts
    189

    Clear protected cells

    Hi,

    I've created some protection for my sheets with a password. The problem is that one of the instructions in the code is to clear the contents of some cells, but because they are protected, it gives me an error.
    Is there any way that i can protect my sheets so that anyone can change the cell's values, and be changed by visual basic code?

    thanks

  2. #2
    Registered User
    Join Date
    11-10-2006
    Location
    Los Angeles
    MS-Off Ver
    Office 2016
    Posts
    23

    Clear protected cells

    Hi Mqdias

    Maybe this?
    In same code before clearing the contents of cells add code
    ActiveSheet.Unprotect
    & after clearing add a code
    ActiveSheet.Protect

+ 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