Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 16
Default 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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 30
Default 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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 16
Default 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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 420
Default 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
Search this Thread:

Advanced Search
Display Modes

Posting Rules

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
restricting entry into a cell based on entry to a previous cell newbie57 New Users to Excel 1 June 9th 08 05:43 PM
Referencing a named range based upon Range name entry in cell Barb Reinhardt Excel Worksheet Functions 14 June 20th 07 07:19 PM
Highlighting a range using a Macro based on more then 5 conditions Alex Excel Programming 1 November 10th 06 12:10 PM
Highlighting Range of Cells based on another cell with 5 condition Alex Excel Programming 6 November 10th 06 06:45 AM
how do I apply 10% gray shade to a cell in Excel? myraddin Excel Worksheet Functions 3 May 14th 06 06:48 AM


All times are GMT +1. The time now is 01:53 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"