• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 267
  • Last Modified:

Conditional Formatting Across Workbook

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
rporter45
Asked:
rporter45
2 Solutions
 
MacroShadowCommented:
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
 
Steven HarrisPresidentCommented:
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

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now