ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Drop Down lists and condtional formating (https://www.excelbanter.com/excel-worksheet-functions/235178-drop-down-lists-condtional-formating.html)

grissom 345

Drop Down lists and condtional formating
 
I have a spreadsheet for a 24 hour rota, i have added drop down boxes and
want to use conditional format the options, I have 5 selections on my drop
down list but formating will only allow me to colour 3, any way around it?

OssieMac

Drop Down lists and condtional formating
 
Can be done with macro code. If you want to use this option then please post
the following information.

The cell references to have the conditional format.
The 5 values in the drop downs. (If not the same for each cell reference
then need to match these with the cell references.)
The formatting required for each value.

--
Regards,

OssieMac


"grissom 345" wrote:

I have a spreadsheet for a 24 hour rota, i have added drop down boxes and
want to use conditional format the options, I have 5 selections on my drop
down list but formating will only allow me to colour 3, any way around it?


Shane Devenshire[_2_]

Drop Down lists and condtional formating
 
Hi,

1. You can get 5 formats if you don't mind that 2 of them will only be font
color changes by applying the three conditional formats and a custom format
in the Format, Cells, Number tab, Custom dialog box.

2. You can upgrade to 2007 which allows an unlimited number of conditional
format and much more.

3. You can use code such as the following:

Sub FormatCells()
Dim cell As Range
For Each cell In Selection
With cell.Interior
Select Case cell
Case Is < 0
.ColorIndex = 39
Case Is = 0
.ColorIndex = 37
Case 1 To 10
.ColorIndex = 34
Case 11 To 25
.ColorIndex = 35
Case Else
.ColorIndex = 40
End Select
End With
Next cell
End Sub

--
If this helps, please click the Yes button.

Cheers,
Shane Devenshire


"grissom 345" wrote:

I have a spreadsheet for a 24 hour rota, i have added drop down boxes and
want to use conditional format the options, I have 5 selections on my drop
down list but formating will only allow me to colour 3, any way around it?



All times are GMT +1. The time now is 08:18 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com