j'ai aucune ligne en jaune
en faite j'ai juste
Machine : xx inconnue
Action : xx inconnue
Dans le message box qui s'affiche
Pour info ces deux page ne sont pas protégé
Et voila le code avec en rouge les modification
Private Sub Workbook_SheetChange(ByVal Sh As Object, ByVal Target As Range)
If Target.Count > 1 Then Exit Sub
Select Case Sh.Name
Case "PAGE D'ACCEUIL", "Planning1", "Archives", "mettre à jour",
Case Else
If Not Intersect(Range(" I12:I" & Range("B" & Rows.Count).End(xlUp).Row), Target) Is Nothing Then
With Sheets("Archives")
With .Range("A6:A" & .Range("B" & Rows.Count).End(xlUp).Row)
.Formula = "=RC[2]&RC[3]"
.Value = .Value
Set cel = .Find(what:=Target.Offset(0, -5) & Target.Offset(0, -3), _
LookIn:=xlValues, lookat:=xlWhole)
End With
If Not cel Is Nothing Then
.Cells(cel.Row, 4 + Month(Target)) = Target
Else
MsgBox "Machine : " & Target.Offset(0, -5) & " inconnue" & vbCr & _
"Action : " & Target.Offset(0, -3) & " inconnue"
End If
.Columns(1).ClearContents
End With
End If
End Select
End Sub