Advertisement

12.04.2003 at 07:40AM PST, ID: 20816452
[x]
Attachment Details

Locking/Unlocking Cells in Excel

Asked by rthomsen in Microsoft Excel Spreadsheet Software

Tags: excel, cells, unlock

I have an Excel form that is being emailed to different parties to complete various parts of the form.  I would like to unlock the appropriate cells for each group and unlock all others.  I am using code like the following:

Call Worksheets("sheet1").Unprotect(Worksheets("sheet2").Range("PWD"))
Worksheets("sheet1").Range("reqBy").Locked = True

When this runs I get runtime Error 1004: Unprotect method of worksheet object failed.  Sometimes I also get an error about the locked property being unavailable.

Any ideas as to why I can not programatically unprotect the spreadsheet?Start Free Trial
[+][-]12.04.2003 at 08:12AM PST, ID: 9875358

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]12.04.2003 at 09:42AM PST, ID: 9876049

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]12.04.2003 at 12:38PM PST, ID: 9877407

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]12.04.2003 at 12:44PM PST, ID: 9877472

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]12.04.2003 at 12:59PM PST, ID: 9877601

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zone: Microsoft Excel Spreadsheet Software
Tags: excel, cells, unlock
Sign Up Now!
Solution Provided By: byundt
Participating Experts: 2
Solution Grade: A
 
 
[+][-]12.04.2003 at 01:16PM PST, ID: 9877765

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]12.04.2003 at 02:06PM PST, ID: 9878176

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]12.08.2003 at 08:16AM PST, ID: 9897272

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]12.08.2003 at 12:17PM PST, ID: 9899040

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32