hello guys hoping someone can solve this for me..
im using this in vba to color some cells based on value of another cell.
it works until i protect the sheet.. is there a way to make this work even when sheet is protected? all cells mentioned are unlocked even when sheet is protected.
-----------------------
If [a42].Value <= 0 Then
[h12:h14].Interior.ColorIndex = 0
End If
If [a42].Value > 0 And [a42].Value <= 1 Then
[h12].Interior.ColorIndex = 6
End If
If [a42].Value > 1 And [a42].Value <= 2 Then
[h12:h13].Interior.ColorIndex = 6
End If
If [a42].Value > 2 And [a42].Value <= 3 Then
[h12:h14].Interior.ColorIndex = 6
End If
------------------------------------
im using this in vba to color some cells based on value of another cell.
it works until i protect the sheet.. is there a way to make this work even when sheet is protected? all cells mentioned are unlocked even when sheet is protected.
-----------------------
If [a42].Value <= 0 Then
[h12:h14].Interior.ColorIndex = 0
End If
If [a42].Value > 0 And [a42].Value <= 1 Then
[h12].Interior.ColorIndex = 6
End If
If [a42].Value > 1 And [a42].Value <= 2 Then
[h12:h13].Interior.ColorIndex = 6
End If
If [a42].Value > 2 And [a42].Value <= 3 Then
[h12:h14].Interior.ColorIndex = 6
End If
------------------------------------