Professional Documents
Culture Documents
TP 2 Vba
TP 2 Vba
Option Explicit
End Sub
SelLigne = CmbCode.ListIndex + 2
Affichage (SelLigne)
End Sub
Unload Me
End If
End Sub
Sheets("Données").Activate
'FinLigne = Sheets("Données").Range("A1").Rows.End(xlDown).Row
FinLigne = Sheets("Données").Range("A2000").Rows.End(xlUp).Row
Dim i As Integer
For i = 2 To FinLigne
Next
SelLigne = 2
Affichage (SelLigne)
End Sub
EXO 2 :
Option Explicit
OptDebutant.Value = True
Else
OptIntermediaire.Value = True
End If
End Sub
Sub Effacer()
TxtNom.Value = ""
TxtPrenom.Value = ""
TxtAge.Value = ""
OptDebutant.Value = False
OptIntermediaire.Value = False
End Sub
Dim i As Integer
trouve = False
For i = 2 To FinLigne
trouve = True
Exit For
End If
Next
Effacer
Else
Affichage (i)
End If
End Sub
Effacer
BtnAjouter.Caption = "Enregistrer"
Else
Else
FinLigne = FinLigne + 1
Else
End If
BtnAjouter.Caption = "Ajouter"
End If
End If
End Sub
Sheets("Inscriptions").Activate
FinLigne = Sheets("Inscriptions").Range("A1").Rows.End(xlDown).Row
FinLigne = Sheets("Inscriptions").Range("A2000").Rows.End(xlUp).Row
End Sub
EXO 3 :
Option Explicit
End If
Next
End Sub
Private Sub CommandButton1_Click()
Unload Me
End Sub
Sheets("Liste").Activate
FinLigne = Sheets("Liste").Range("A100").Rows.End(xlUp).Row
FinColonne = Sheets("Liste").Range("A1").End(xlToRight).Column
Next
End Sub