Im using this code to color an specific row, from the starting column to the end column for a 4 weeks timeline graphic (not a grant chart) but since I'm using dates as headers the columns are not corresponding with the dates
can you please help me to find the column number (StartColumn) based on the date I need?
e.g.
11/05/2019 = column 5
[FONT=Verdana,Arial,Tahoma,Calibri,Geneva,sans-serif]Sub coloring(EvenName As String, StartColumn As Integer, EndColumn As Integer, Row As Integer, EventColor As Long)
Static X As Integer
Cells(Row, StartColumn).Value = EentName
For X = StartColumn To EndColumn
Cells(Row, X).Interior.Color = EventColor
Next[/FONT]
[FONT=Verdana,Arial,Tahoma,Calibri,Geneva,sans-serif]End Sub[/FONT]
can you please help me to find the column number (StartColumn) based on the date I need?
e.g.
11/05/2019 = column 5
[FONT=Verdana,Arial,Tahoma,Calibri,Geneva,sans-serif]Sub coloring(EvenName As String, StartColumn As Integer, EndColumn As Integer, Row As Integer, EventColor As Long)
Static X As Integer
Cells(Row, StartColumn).Value = EentName
For X = StartColumn To EndColumn
Cells(Row, X).Interior.Color = EventColor
Next[/FONT]
[FONT=Verdana,Arial,Tahoma,Calibri,Geneva,sans-serif]End Sub[/FONT]