LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 770
Default Shading cells based on Other Sheet Value?

Rusty,

You can use Conditional Formatting from the Formatting menu.

Experiment first using CF where the cells to be patterned and the "yes no"
cell are in the same sheet. Having the source in another sheet requires
that you name the "yes no" cell and then refer to the name in the
Conditional Formatting dialog box. For example, with a cell named
"yes_or_no" in Sheet 1, the formula in the Conditional Formats dialog box
for a group of cells in Sheet 2 is:

=yes_or_no="yes"

hth,

Doug Glancy

"RustyR" wrote in message
...
I have a workbook that has dropdowns with Yes and No answers.

Is there a way to select a range of cells in another worksheet (some of
which may be merged) and Format those cells with a patter based on a Yes

or
No answer in another worksheet?

I ran a macro to do it and got this but I don't know what to do with it or
how to correlate it with say, Requestor!B10 (example).

Sub ShadeCell()
Range("B15:V18").Select
With Selection.Interior
.ColorIndex = 2
.Pattern = xlGray25
.PatternColorIndex = xlAutomatic
End With
End Sub

Thank you in advance.
Rusty




 
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
Shading Cells based on Date Lee Quillen Excel Worksheet Functions 1 September 17th 08 04:49 PM
Is there a way to add cells based on their shading / fill colour? ChefAtSea Excel Discussion (Misc queries) 2 July 4th 07 01:22 PM
Conditional Cell Shading (based on the shading of other cells) Tubby Excel Worksheet Functions 2 June 20th 06 10:03 PM
Automatic shading of cells based on dates??? Pedros Excel Worksheet Functions 3 October 20th 05 12:35 AM
Apply cell shading based on adjacent cells in EXCEL garywr Excel Worksheet Functions 3 September 10th 05 01:35 PM


All times are GMT +1. The time now is 05:41 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"