Solved

Conditional Formatting Across Workbook

Posted on 2014-02-11
2
225 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 27

Accepted Solution

by:
MacroShadow earned 150 total points
ID: 39851639
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
ID: 39851779
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

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction This Article briefly covers methods of calculating the NPV and IRR variants in Excel as well as the limitations in calculating and interpreting IRR results. Paraphrasing Richard Shockley, author of my favourite finance reference tex…
In Part II of this series, I will discuss how to identify all open instances of Excel and enumerate the workbooks, spreadsheets, and named ranges within each of those instances.
The viewer will learn how to create a normally distributed random variable in Excel, use a normal distribution to simulate the return on an investment over a period of years, Create a Monte Carlo simulation using a normal random variable, and calcul…
This Micro Tutorial will demonstrate the scrolling table in Microsoft Excel using the INDEX function.

756 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