Same color scale looks different in multiple worksheets

excelactuary

New Member
Joined
Feb 18, 2013
Messages
45
I have a row containing numbers from 1 to 4 and I want to use a color scale to differentiate between the cells easier. The problem is, that I have multiple sheets and in some sheets, I get a different color scale, even though I use the same command and color scale.

I've already removed the "conditional formatting" on all worksheets, but the problem isn't resolved. Is there another way to clear the formatting of a cell, besides going to the "Conditional Formatting" tab and clicking "delete rule for entire sheet"?

Regards,
excelactuary
 

Excel Facts

Can you sort left to right?
To sort left-to-right, use the Sort dialog box. Click Options. Choose "Sort left to right"
I would use a quick macro to remove all pattern, tint and shade, and colors from all cells...

If you are not familiar with the vba editor do the following... if you are... ignore and just add the code
To do this, hold Alt & press F11 key to show the vba editor
Right click on the workbook you want to accomplish this in and insert a module.
Click on the module and enter the following code.


Code:
Sub test()
Dim sht As Worksheet
For Each sht In ThisWorkbook.Sheets
    With sht.Cells.Interior
        .Pattern = xlNone
        .TintAndShade = 0
        .PatternTintAndShade = 0
    End With
    With sht.Cells.Font
        .TintAndShade = 0
        .ColorIndex = 0
    End With
Next sht

End Sub
 
Upvote 0
I would use a quick macro to remove all pattern, tint and shade, and colors from all cells...

If you are not familiar with the vba editor do the following... if you are... ignore and just add the code
To do this, hold Alt & press F11 key to show the vba editor
Right click on the workbook you want to accomplish this in and insert a module.
Click on the module and enter the following code.


Code:
Sub test()
Dim sht As Worksheet
For Each sht In ThisWorkbook.Sheets
    With sht.Cells.Interior
        .Pattern = xlNone
        .TintAndShade = 0
        .PatternTintAndShade = 0
    End With
    With sht.Cells.Font
        .TintAndShade = 0
        .ColorIndex = 0
    End With
Next sht

End Sub

I'm getting a Runtime error '13': Type mismatch
 
Upvote 0

Forum statistics

Threads
1,202,901
Messages
6,052,445
Members
444,581
Latest member
naninamu

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top