1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
| Public Sub tab_jour()
ReDim tbj(1 To 10, 1 To 7): idj = 1
With Sheets("Equipes")
For lig = 1 To .UsedRange.Rows.Count
If .Cells(lig, 6).Value = "X" Then
tbj(idj, 3) = .Cells(lig, 4).Value
tbj(idj, 4) = .Cells(lig + 1, 4).Value
tbj(idj, 5) = .Cells(lig + 1, 6).Value
tbj(idj, 6) = .Cells(lig + 1, 8).Value
tbj(idj, 7) = .Cells(lig, 8).Value
idj = idj + 1
If idj > 10 Then Exit For
End If
Next lig
End With
With Sheets("Ligue 1 - Saison_16_17")
lig = .ComboBox1.List(.ComboBox1.ListIndex, 1) + 1
col = .ComboBox1.List(.ComboBox1.ListIndex, 2) - 2
.Cells(lig, col).Resize(10, 7).Value = tbj
.ComboBox1.ListIndex = -1
End With
End Sub |
Partager