Bonjour,
Autre solution :
Private Sub Worksheet_Change(ByVal Target As Range)
Dim pkd%, pkf%, i%, clr&, PlgS As Range, PlgC As Range
Set PlgS = Me.Range("B8:C17")
Set PlgC = Me.Range("G8:U8")
clr = RGB(141, 180, 226)
If Not Intersect(Target, PlgS) Is Nothing Then
Application.ScreenUpdating = False
PlgC.Interior.ColorIndex = xlColorIndexNone
With PlgS
For i = 1 To .Rows.Count
If .Cells(i, 1) <> "" And .Cells(i, 2) <> "" Then
pkd = .Cells(i, 1) \ 25 + 1: pkf = .Cells(i, 2) \ 25 + 1
Range(PlgC.Cells(1, pkd), PlgC.Cells(1, pkf)).Interior.Color = clr
Else
Exit For
End If
Next i
End With
End If
End Sub
Cependant, comme tu fais état d'un fichier lourd et lent, ce qui n'est pas le cas de ton modèle, et n'ayant pas d'élément sur les causes de ce qui affecte ton fichier réel, il n'est pas vraiment sûr que cela puisse solutionner ton problème...
Cordialement.