thanks
Private Sub Worksheet_Change(ByVal Target As Range)
Dim WatchRange As Range
Dim CellVal As String
If Target.Cells.Count > 1 Then Exit Sub
If Target = "" Then Exit Sub
CellVal = Target
Set WatchRange = Range("A1:Z1000") 'change to suit
If Not Intersect(Target, WatchRange) Is Nothing Then
Select Case CellVal
Case "All"
Target.Interior.ColorIndex = 46
Case "Manager"
Target.Interior.ColorIndex = 16
Case "Supervisor"
Target.Interior.ColorIndex = 3
Case "Employee"
Target.Interior.ColorIndex = 4
End Select
End If
End Sub
Notice, to make this work, right-click the sheet that you want to use this
in, click View Code, and paste the code into the window that opens.
--
Ryan---
If this information was helpful, please indicate this by clicking ''Yes''.
Right-click on the sheet tab and "View Code". Copy/paste the code into that
sheet module.
Make the appropriate edits to range and vals and nums
Gord Dibben MS Excel MVP
On Thu, 7 Jan 2010 08:02:03 -0800, peterg <pet...@discussions.microsoft.com>
wrote:
"peterg" <pet...@discussions.microsoft.com> wrote in message
news:4C81BC09-9EC9-471E...@microsoft.com...
On Jan 7, 11:11 am, "Bernard Liengme" <blien...@TRUENORTH.stfx.ca>
wrote:
> Have a look herehttp://www.ozgrid.com/VBA/excel-conditional-formatting-limit.htm
> best wishes
> --
> Bernard Liengme
> Microsoft Excel MVPhttp://people.stfx.ca/bliengme
--
Ryan---
If this information was helpful, please indicate this by clicking ''Yes''.
"Gord Dibben" wrote:
> .
>
If you're going the macro route, you can use commas to separate
options:
Case "Manager", "manager", "mgr"
If you're using conditional formatting, you can use something like:
lower(h10) = "manager"
plus you always have the OR function too.
On Jan 7, 3:16 pm, ryguy7272 <ryguy7...@discussions.microsoft.com>
wrote:
Gord
You want to color just the text "manager" or color the entire cell if any
form of manager is found?
Gord