Function couleurFond(champ As Range)
Application.Volatile
If champ.Count = 1 Then
couleurFond = champ.Interior.ColorIndex
Else
Dim t, u, i&, j%
t = champ 'matrice
u = UBound(t, 2)
For i = 1 To UBound(t)
For j = 1 To u
t(i, j) = champ(i, j).Interior.ColorIndex
Next
Next
couleurFond = t
End If
End Function