VBA : Ecriture sur la mauvaise feuille
Fermé
mzalbil
-
9 oct. 2015 à 12:40
f894009 Messages postés 17185 Date d'inscription dimanche 25 novembre 2007 Statut Membre Dernière intervention 15 avril 2024 - 9 oct. 2015 à 14:09
f894009 Messages postés 17185 Date d'inscription dimanche 25 novembre 2007 Statut Membre Dernière intervention 15 avril 2024 - 9 oct. 2015 à 14:09
A voir également:
- VBA : Ecriture sur la mauvaise feuille
- Incompatibilité de type vba ✓ - Forum Programmation
- Vba attendre 1 seconde ✓ - Forum VB / VBA
- Vba dernière colonne non vide ✓ - Forum VB / VBA
- Vba récupérer valeur cellule ✓ - Forum VB / VBA
- Mkdir vba ✓ - Forum VB / VBA
1 réponse
f894009
Messages postés
17185
Date d'inscription
dimanche 25 novembre 2007
Statut
Membre
Dernière intervention
15 avril 2024
1 701
9 oct. 2015 à 14:09
9 oct. 2015 à 14:09
Bonjour,
Private Sub Validercotisation_Click() Dim PCV As Integer If ajoutcotisation.Nom <> "" And ajoutcotisation.prenom <> "" And _ ajoutcotisation.Email <> "" And ajoutcotisation.sommecotisation <> "" Then With worksheest("cotisation") 'premiere cellule vide colonne A PCV = .Range("A" & Rows.Count).End(xlUp).Row + 1 .Range("A" & PCV) = ajoutcotisation.Nom.Value .Range("B" & PCV) = ajoutcotisation.prenom.Value .Range("C" & PCV) = ajoutcotisation.dateinscription.Value .Range("D" & PCV) = ajoutcotisation.Email.Value .Range("E" & PCV) = ajoutcotisation.sommecotisation.Value End With Unload ajoutcotisation End If End Sub