re,
Clique droite sur l'onglet "Vendredi" puis choisis "Visualiser le code".
Dans la fenêtre colle le code ci-dessous
Private Sub Worksheet_Change(ByVal Target As Range)
'Macro Dan pour Gérald le 24/08/2010
If Not Intersect(Target, Range("B5:B" & Range("B65536").End(xlUp).Row)) Is Nothing Then
Select Case Target
Case Is <> ""
With Target
.Offset(0, 1).FormulaR1C1 = _
"=IF(ISBLANK(RC2),"""",VLOOKUP(RC[-1],Plage,2))"
.Offset(0, 2).FormulaR1C1 = _
"=IF(ISBLANK(RC2),"""",VLOOKUP(RC[-2],Plage,3))"
.Offset(0, 3).FormulaR1C1 = _
"=IF(ISBLANK(RC2),"""",VLOOKUP(RC[-3],Plage,4))"
End With
Case Else
Range("C" & Target.Row & ":E" & Target.Row).ClearContents
End Select
End If
End Sub
Amicalement