ErinJ
New Member
- Joined
- May 27, 2011
- Messages
- 26
I am creating a gantt chart
I have two sheets:
Projects
Schedules
In Projects I have 2 columns
Start Date
Completion Date
In Schedules I have the same projects mirrored but I have a column for each day of the month/year. I have put the corresponding date in each cell and formated white so no one can see it.
I want the corresponding Job to change the color of the cell to blue if it falls within the cell range of Start Date and Completion Date in Projects.
Here is a sample of code I'm playing with but it doesn't work. I'm probably on the wrong track.
I have two sheets:
Projects
Schedules
In Projects I have 2 columns
Start Date
Completion Date
In Schedules I have the same projects mirrored but I have a column for each day of the month/year. I have put the corresponding date in each cell and formated white so no one can see it.
I want the corresponding Job to change the color of the cell to blue if it falls within the cell range of Start Date and Completion Date in Projects.
Here is a sample of code I'm playing with but it doesn't work. I'm probably on the wrong track.
HTML:
Select Case Range("C6:C371").Value
Case Is => "PROJECTS!E5" < "PROJECTS!E6"
Range("C6:C371").FormatConditions(1).Interior.ColorIndex=5
Case Else
Range("C6C371").FormatConditions(1).Interior.ColorIndex= White?
End Select