PC Review


Reply
Thread Tools Rate Thread

HOW TO APPLY GRAY HIGHLIGHTING TO RANGE, BASED ON ENTRY IN ONE CELL

 
 
Dave K
Guest
Posts: n/a
 
      26th Aug 2010
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.
 
Reply With Quote
 
 
 
 
ManicMiner17
Guest
Posts: n/a
 
      26th Aug 2010
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

 
Reply With Quote
 
Dave K
Guest
Posts: n/a
 
      26th Aug 2010
On Aug 26, 11:21*am, ManicMiner17 <po...@noname.net> 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!
 
Reply With Quote
 
Dave Peterson
Guest
Posts: n/a
 
      26th Aug 2010
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 With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
HOW TO APPLY GRAY HIGHLIGHTING TO RANGE, BASED ON ENTRY IN ONE CELL Dave K Microsoft Excel Discussion 4 26th Aug 2010 06:12 PM
Referencing a named range based upon Range name entry in cell =?Utf-8?B?QmFyYiBSZWluaGFyZHQ=?= Microsoft Excel Worksheet Functions 14 20th Jun 2007 07:19 PM
Highlighting Range of Cells based on another cell with 5 condition =?Utf-8?B?QWxleA==?= Microsoft Excel Programming 6 10th Nov 2006 06:45 AM
how do I apply 10% gray shade to a cell in Excel? =?Utf-8?B?bXlyYWRkaW4=?= Microsoft Excel Worksheet Functions 3 14th May 2006 06:48 AM
Gray shading within gray brackets - not highlighting or forms? =?Utf-8?B?RWxpemFiZXRoIEdhcm5lcg==?= Microsoft Word Document Management 2 5th Dec 2005 08:48 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 03:47 PM.