Bonjour,
Dernièrement, j'ai posté un message pour avoir une macro qui me générait dans 3 cellules soit un 2, soit un 3.
Voici cette macro :
Sub Tirage()
Dim Ligne As Long
Dim I As Integer
Randomize
'Set Sh = ActiveSheet.Shapes(Application.Caller)
Ligne = ActiveSheet.Shapes(Application.Caller).TopLeftCell.Row
For I = 2 To 4
' Int((upperbound - lowerbound + 1) * Rnd + lowerbound)
Cells(Ligne, I) = Int((3 - 2 + 1) * Rnd + 2)
Next I
End Sub
Aujourd'hui, j'aurais besoin de la même chose, mais au lieu de générer un 2 ou un 3, il faudrait que ce soit un 0 ou un 1.
Pourriez-vous m'aider ??
Je vous remercie par avance.