Conditional Formating - More then 3 conditioned with formula

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi,
I viewed the VB code that was suggested to overcome many cond. formating.
BUT
It does not work properally when the conditioned range is based on formula.

I dont mind activating mannually a routine instead.
TIA
 
What code are you referring to?

--
HTH

Bob Phillips

(replace somewhere in email address with gmail if mailing direct)
 
Bob,
the one you supplied to sara on 10/21

Bob Phillips said:
What code are you referring to?

--
HTH

Bob Phillips

(replace somewhere in email address with gmail if mailing direct)
 
Can you post it?

--
HTH

Bob Phillips

(replace somewhere in email address with gmail if mailing direct)
 
'-----------------------------------------------------------------
Private Sub Worksheet_Change(ByVal Target As Range)
'-----------------------------------------------------------------
Const WS_RANGE As String = "H1:H10"

On Error GoTo ws_exit:
Application.EnableEvents = False
If Not Intersect(Target, Me.Range(WS_RANGE)) Is Nothing Then
With Target
Select Case .Value
Case "Open":
..Interior.ColorIndex = 3 'red
Case "For Review / Approval":
..Interior.ColorIndex = 6 'yellow
Case "Verified":
..Interior.ColorIndex = 5 'blue
Case "Closed":
..Interior.ColorIndex = 10 'green
Case "Pending":
..Interior.ColorIndex = 38 'rose
Case "Rejected":
..Interior.ColorIndex = 37 'pale blue
End Select
End With
End If

ws_exit:
Application.EnableEvents = True
End Sub
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top