Advertisement

07.06.2008 at 11:58PM PDT, ID: 23542591
[x]
Attachment Details

How to change the color of an unprotected cell in excel when its modified?

Asked by orazen11 in Microsoft Excel Spreadsheet Software

I have the following code to change the color of cell when a modification is made in that cell

           
             Private Sub Worksheet_Change(ByVal Target As Range)
                     Target.Interior.ColorIndex = 20
             End Sub
     
        I want to allow modifications only in certain cells. Thus I want to password protect the rest of the cells in the sheet. The problem is when I make some columns protected and then make changes in unprotected part the above code gives error. How can I modify the above code to satisfy this requirement?

 

Start Free Trial
[+][-]07.07.2008 at 12:11AM PDT, ID: 21943134

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.

 
[+][-]07.07.2008 at 12:22AM PDT, ID: 21943155

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.

 
[+][-]07.07.2008 at 02:58AM PDT, ID: 21943685

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.

 
[+][-]07.07.2008 at 03:01AM PDT, ID: 21943699

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.

 
[+][-]07.07.2008 at 03:12AM PDT, ID: 21943743

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.

 
[+][-]07.07.2008 at 03:17AM PDT, ID: 21943764

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.

 
[+][-]07.07.2008 at 03:35AM PDT, ID: 21943827

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.

 
[+][-]07.07.2008 at 03:40AM PDT, ID: 21943857

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
Sign Up Now!
Solution Provided By: zorvek
Participating Experts: 2
Solution Grade: B
 
 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628