Solved

Conditional Formatting Across Workbook

Posted on 2014-02-11
2
219 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 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

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

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

Workbook link problems after copying tabs to a new workbook? David Miller (dlmille) Intro Have you either copied sheets to a new workbook, and after having saved and opened that workbook, you find that there are links back to the original sou…
This article descibes how to create a connection between Excel and SAP and how to move data from Excel to SAP or the other way around.
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…
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…

815 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

12 Experts available now in Live!

Get 1:1 Help Now