Solved

Conditional Formatting Across Workbook

Posted on 2014-02-11
2
216 Views
Last Modified: 2014-02-13
Hi there,

I have to conditionally format cells in excel.  I usually use the conditional formatting option and apply;

Cell Colour      Criteria
Green              Cell is equal to "X"
Green              Cell contains Has Access
Green              Cell is equal to "Yes"
Red                      Cell contains "Cannot"
Red                      Cell contains "No Access"
Yellow              Cell contains "Not Defined"

this is fine to do on a couple of sheets but now I have 52.  Is there a way to apply the formatting to the entire workbook?

Thanks - CS
0
Comment
Question by:rporter45
2 Comments
 
LVL 26

Accepted Solution

by:
MacroShadow earned 150 total points
Comment Utility
1. Copy a cell from the original sheet to an unused cell in the destination sheet (not one with data in it).
2. Conditional Formatting >> Manage Rules
3. In the dropdown list: "Show formatting rules for:"  select "This Worksheet"
    For each Rule, adjust the "Applies" to match the range you need.
        a. Click the range button to the right of the Applies to
        b. Click-drag-select from the top left cell to the bottom right cell
        c. Click the range button to return to the Conditional Rules Manager
4. Click OK or Apply.
5. Enjoy!
0
 
LVL 18

Assisted Solution

by:Steven Harris
Steven Harris earned 150 total points
Comment Utility
You can only set conditional formatting for one sheet at a time, but you can automate the sequence and iterate through all of the worksheets.

Try recording your formatting on one worksheet, then call it from this one:


Sub WorkbookFormatting()
Dim Ws As Worksheet
    For Each Ws In ActiveWorkbook.Worksheets
        'your formatting macro
    Next Ws
End Sub

Open in new window

0

Featured Post

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

Introduction While answering a recent question (http:/Q_27311462.html), I created an alternative function to the Excel Concatenate() function that you might find useful.  I tested several solutions and share the results in this article as well as t…
This tutorial explains how to create a series of drop-down lists that are dependent upon prior selections to guide (“force”) the user to make the correct selection and reduce data errors within Microsoft Excel. Excel 2010 was used for this tutorial;…
The viewer will learn how to simulate a series of sales calls dependent on a single skill level and learn how to simulate a series of sales calls dependent on two skill levels. Simulating Independent Sales Calls: Enter .75 into cell C2 – “skill leve…
The viewer will learn how to create two correlated normally distributed random variables in Excel, use a normal distribution to simulate the return on different levels of investment in each of the two funds over a period of ten years, and, create a …

771 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now