Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi all
Was wondering if anyone could correct the following so that it actually works please.. Private Sub Worksheet_Change(ByVal Target As Range) Dim MyRowRange As Range Set MyRowRange = ("A:N") If Not Intersect(Target, Range("M6:M3000")) Is Nothing Then Select Case True Case Target.Value = "RESTRICTED" MyRowRange.BackColor = RED Case Target.Value = "FULL ACCESS" MyRowRange.BackColor= LIGHT GREEN Case Target.Value = "LIMITED" MyRowRange.BackColor= YELLOW End Select End If End Sub Essential when the sole user of this sheet selects a security access level for staff members I would like it to color the background of MyRowRange to the applicable color for that specific row that is being intersected with/by the column "M". I know I can do this via the Ribbon, but it will not be available to the user as he will only have File|Open|Close|Exit|Save available at this stage. TIA Mick |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Conditional formating | Excel Discussion (Misc queries) | |||
Conditional formating | Excel Discussion (Misc queries) | |||
Conditional Formating ? | Excel Programming | |||
VBA Conditional formating | Excel Programming | |||
Install dates formating using conditional formating? | Excel Discussion (Misc queries) |