Amusante, cette discussion..
Ben oui...(...)
Mais toutes les combinaisons a 4 chifres de 0 à 9 ressemble à une liste de 0000 à 9999........
Pourquoi un programme?
(...)
=(LIGNE()-1*(COLONNE()-1)*-1000)-1
Option Explicit
Sub Combinaisons()
Range("A1:J1000").Formula = "=(ROW()-1*(COLUMN()-1)*-1000)-1"
Range("A1").Select
End Sub
Bonsoir,
J'osais pas intervenir...
Mais toutes les combinaisons a 4 chifres de 0 à 9, ça ressemble à une liste de 0000 à 9999........
Pourquoi un programme?
Bonne soirée
on a la réponse ici :(...) Maintenant la question est de savoir lesquels il faut aller chercher. (...)
Comme example
0102
1234
9879
5556
0705
est ce possible un fichier excel avec toutes les combinaisons?
Sub la_combine_de_la_mort()
col = 1: lig = 1
For i = 0 To 9999
Cells(lig, col).Value = i
If i Mod 100 = 0 And i <> 0 Then col = col + 1: lig = 0
lig = lig + 1
Next i
Range("A1").CurrentRegion.NumberFormat = "0000"
End Sub
[B][COLOR="DarkSlateGray"]Sub MEDAILLE_FIELD()
Dim i As Long, j As Long, k As Long, l As Long
Dim m As Long, n As Long, x As Integer
For i = 0 To 9
n = n + 1
For j = 0 To 9
For k = 0 To 9
For l = 0 To 9
x = i
x = 10 * x + j
x = 10 * x + k
x = 10 * x + l
m = m + 1
With Cells(m, n)
.Value = x
.NumberFormat = "0000"
End With
Next l
Next k
Next j
m = 0
Next i
MsgBox "Opération terminée."
End Sub[/COLOR][/B]