Private Sub MultiPage1_MouseUp(ByVal Index As Long, ByVal Button As Integer, ByVal Shift As Integer, ByVal X As Single, ByVal Y As Single)
Dim i As Integer
Dim j As Integer
' On ajoute les objets cochés (dans la UserForm) à la listBox
For i = 1 To 42
If Me.Controls("Trou" & i) Then
tableauValeur(i) = Me.Controls("Trou" & i).Value
tableauNom(i) = Me.Controls("Trou" & i).Caption
End If
Next i
' On écrit dans la colonne F le nom des cases et dans la colonne G la valeur (cachée ou non)
Sheets("Feuil2").Select
For j = 1 To 42
Cells(j, 6).Value = Me.Controls("Trou" & j).Value
Cells(j, 7).Value = Me.Controls("Trou" & j).Caption
Next j
End Sub