-
Solved: Find ALL Cell Fill Colors and Make them One Color
I've got peach and green and all sorts of cell fill colors in use.
Without affecting those that are conditionally formatted, I'd like to find all cells filled with color and make them all the same color... any color you like is fine; well...except black.
-
-
Works terrific, John. Could you possibly add a status bar message to tell us what sheet (or what sheet number) it's on? Would love that!!
-
John shows offline, I'll help him out ...
[vba]Sub ChangeCellColors_EntireWorkBook()
Dim Cell As Range, Sheet As Worksheet
Application.ScreenUpdating = False
For Each Sheet In Worksheets
Application.StatusBar = "Working on " & Sheet.Index & " of " & Worksheets.Count & " - " & Sheet.Name
For Each Cell In Sheet.UsedRange
If Cell.Interior.ColorIndex <> xlColorIndexNone Then
Cell.Interior.ColorIndex = 35
End If
Next Cell
Next Sheet
Application.ScreenUpdating = True
Application.StatusBar = False
Set Sheet = Nothing
Set Cell = Nothing
End Sub[/vba]
-
-
-
-
LOL! Sorry John, didn't mean to step on your toes buddy.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules