Re : Colorer colonne "jour férié"
Bonjour, sur une feuille horarire, je colorie des lignes en fonction de mots placés dans une colonne, peut-être qu'en adaptant ce code à placer dans thisworkbook:
'coloration de ligne en fonction du mot entré en ligne "J"
'les lignes "Samedi" "Dimanche" "férié" sont désactivées, car elles ne servent
'qu'au moment de la création du calendrier en début d'année, et "formation"
'activée à la demande
Private Sub Workbook_Open()
Dim Cell As Range
For Each Cell In Range("J:J")
'With Cell
'If .Value = "Samedi" Then
'Range(Cells(.Row, 1), Cells(.Row, 9)).Interior.ColorIndex = 35
'End If
'End With
'With Cell
'If .Value = "Dimanche" Then
'Range(Cells(.Row, 1), Cells(.Row, 9)).Interior.ColorIndex = 35
'End If
'End With
'With Cell
' If .Value = "férié" Then
' Range(Cells(.Row, 1), Cells(.Row, 9)).Interior.ColorIndex = 36
' End If
'End With
With Cell
If .Value = "RTT" Then
Range(Cells(.Row, 1), Cells(.Row, 9)).Interior.ColorIndex = 38
End If
End With
With Cell
If .Value = "CA" Then
Range(Cells(.Row, 1), Cells(.Row, 9)).Interior.ColorIndex = 45
End If
End With
With Cell
If .Value = "récup" Then
Range(Cells(.Row, 1), Cells(.Row, 9)).Interior.ColorIndex = 44
End If
End With
'With Cell
'If .Value = "formation" Then
'Range(Cells(.Row, 1), Cells(.Row, 9)).Interior.ColorIndex = 28
'End If
'End With
Next Cell
End Sub