Bonjour,
Essayez ceci
le code
Sub Appliquer_la_selection()
Dim Lig As Long, Col As Long, i As Long
Randomize
For i = 1 To 5
Lig = Int((24 - 13 + 1) * Rnd) + 13
Col = Int((4) * Rnd) + 1
If Cells(Lig, (Col * 2) + 1) = "" Then
Cells(Lig, (Col * 2) + 1) = Cells(6, "G")
Else
i = i - 1
End If
Next i
End Sub
Sub Effacer_tout()
Range("C13:C24,E13:E24,G13:G24,I13:I24").ClearContents
End Sub
Cdlt