D
dazzag82
I have a spreadsheet for Scheduling Projects and one of the columns is to
display the Project Status. Cells M21 to M120 are the cells which I would
like to apply conditioonal formatting to depending on the status of the
Project. Status is entered into the cell via a drop down menu (data
validation).
How do I write a piece of VBA code which willow me to format 7 conditions.
The formats I would like for each status type are as follows
Planned (no format required)
Pre Work (Pale Blue Background, Black Bold Font)
Workshop (Yellow Background, Black Bold Font)
Post Workshop (Light Orange Background, Black Bold Font)
Past Due (Red Background, White Bold Font)
Complete (Bright Green Background, Black Bold Font)
Cancelled (Tan Background, Red plainText )
If anyone can help with the general structure of the code that would be
great. I have seen some examples using the following types of code:
cell.Interior. ColorIndex = 37
or
Target.Interior.Color = RGB(255, 0, 255)
I have no clue what to do and I do not understand how to figure out what the
colourindex or RGB values are so any help on that would be great also.
I also have an issue where the majority of users will have excel 2000 but I
also need it to work in 2003 for one or two people.
Thanks for your help.
display the Project Status. Cells M21 to M120 are the cells which I would
like to apply conditioonal formatting to depending on the status of the
Project. Status is entered into the cell via a drop down menu (data
validation).
How do I write a piece of VBA code which willow me to format 7 conditions.
The formats I would like for each status type are as follows
Planned (no format required)
Pre Work (Pale Blue Background, Black Bold Font)
Workshop (Yellow Background, Black Bold Font)
Post Workshop (Light Orange Background, Black Bold Font)
Past Due (Red Background, White Bold Font)
Complete (Bright Green Background, Black Bold Font)
Cancelled (Tan Background, Red plainText )
If anyone can help with the general structure of the code that would be
great. I have seen some examples using the following types of code:
cell.Interior. ColorIndex = 37
or
Target.Interior.Color = RGB(255, 0, 255)
I have no clue what to do and I do not understand how to figure out what the
colourindex or RGB values are so any help on that would be great also.
I also have an issue where the majority of users will have excel 2000 but I
also need it to work in 2003 for one or two people.
Thanks for your help.