Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
HOW TO APPLY GRAY HIGHLIGHTING TO RANGE, BASED ON ENTRY IN ONE CELL
Hello, i am attempting to apply gray shading to the range i12:w12,
based on the cell g12. That is, if cell g12 contains the word "yes", i want the cells i12 thru w12 to be highlighted gray. Is there a simple way to accomplish that result? Thanks for any suggestions. |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
HOW TO APPLY GRAY HIGHLIGHTING TO RANGE, BASED ON ENTRY IN ONECELL
On 26/08/2010 17:04, Dave K wrote:
Hello, i am attempting to apply gray shading to the range i12:w12, based on the cell g12. That is, if cell g12 contains the word "yes", i want the cells i12 thru w12 to be highlighted gray. Is there a simple way to accomplish that result? Thanks for any suggestions. Hi Dave, You could put this in the worksheet's code module: Private Sub Worksheet_Change(ByVal Target As Range) If Target.Address = Range("$G$12").Address And _ Range("$G$12").Value ="yes" Then Range("I12:W12").Interior.ColorIndex = 15 End If End Sub |
#3
Posted to microsoft.public.excel.programming
|
|||
|
|||
HOW TO APPLY GRAY HIGHLIGHTING TO RANGE, BASED ON ENTRY IN ONE CELL
On Aug 26, 11:21*am, ManicMiner17 wrote:
On 26/08/2010 17:04, Dave K wrote: Hello, i am attempting to apply gray shading to the range i12:w12, based on the cell g12. That is, if cell g12 contains the word "yes", i want the cells i12 thru w12 to be highlighted gray. Is there a simple way to accomplish that result? Thanks for any suggestions. Hi Dave, You could put this in the worksheet's code module: Private Sub Worksheet_Change(ByVal Target As Range) * If Target.Address = Range("$G$12").Address And _ Range("$G$12").Value ="yes" Then * * *Range("I12:W12").Interior.ColorIndex = 15 * *End If End Sub Thanks very much! |
#4
Posted to microsoft.public.excel.programming
|
|||
|
|||
HOW TO APPLY GRAY HIGHLIGHTING TO RANGE, BASED ON ENTRY IN ONECELL
Check your other post.
On 08/26/2010 11:04, Dave K wrote: Hello, i am attempting to apply gray shading to the range i12:w12, based on the cell g12. That is, if cell g12 contains the word "yes", i want the cells i12 thru w12 to be highlighted gray. Is there a simple way to accomplish that result? Thanks for any suggestions. -- Dave Peterson |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
restricting entry into a cell based on entry to a previous cell | New Users to Excel | |||
Referencing a named range based upon Range name entry in cell | Excel Worksheet Functions | |||
Highlighting a range using a Macro based on more then 5 conditions | Excel Programming | |||
Highlighting Range of Cells based on another cell with 5 condition | Excel Programming | |||
how do I apply 10% gray shade to a cell in Excel? | Excel Worksheet Functions |