bonjour,
j'ai une erreur dans mon écriture VBA. Je souhaiterai que les données inscrites dans mon userform apparaissent directement dans mon tableau de suivi en cliquant sur le bouton 'validation'. Pouvez vous m'aider?
merci
Sub Validation_Click()
With bureaudetude
derlign = .Range("a65536").End(xlUp).Row + 1
.Cells(derlign, 1) = Me.Date_Saisie
.Cells(derlign, 2) = Me.Nom_Projet 'Nom projet
.Cells(derlign, 3) = Me.Dep_projet 'departement projet
.Cells(derlign, 4) = Me.Q_01 'phase du projet
.Cells(derlign, 5) = Me.ENTREPRISE_ATTRIBUTION 'entreprise attributrice
.Cells(emptyRow, 6) = Me.ENTREPRISE_GENERALE 'entreprise generale
.Cells(emptyRow, 7) = Me.TYPE_COMPTAGE 'type de comptage
.Cells(emptyRow, 8) = Me.BUREAU_ETUDE 'Nom du bureau d'etude
.Cells(emptyRow, 9) = Me.DEP_BE 'département BE
' .Cells(emptyRow, 10) = Me. 'code postal
.Cells(emptyRow, 11) = Me.fdruyti
.Cells(emptyRow, 12) = Me.ghhgj
.Cells(emptyRow, 13) = Me.dgbjkfh
.Cells(emptyRow, 14) = Me.rjehthj
.Cells(emptyRow, 15) = Me.jghtt
.Cells(emptyRow, 16) = Me.AUTRE 'AUTRE
.Cells(emptyRow, 17) = Me.AUCUN 'AUCUN
.Cells(emptyRow, 18) = Me.TYPE_MATERIEL 'TYPE DE MATERIEL EN PLACE
.Cells(emptyRow, 19) = Me.Commentaires 'Commentaires
End With
End Sub
j'ai une erreur dans mon écriture VBA. Je souhaiterai que les données inscrites dans mon userform apparaissent directement dans mon tableau de suivi en cliquant sur le bouton 'validation'. Pouvez vous m'aider?
merci
Sub Validation_Click()
With bureaudetude
derlign = .Range("a65536").End(xlUp).Row + 1
.Cells(derlign, 1) = Me.Date_Saisie
.Cells(derlign, 2) = Me.Nom_Projet 'Nom projet
.Cells(derlign, 3) = Me.Dep_projet 'departement projet
.Cells(derlign, 4) = Me.Q_01 'phase du projet
.Cells(derlign, 5) = Me.ENTREPRISE_ATTRIBUTION 'entreprise attributrice
.Cells(emptyRow, 6) = Me.ENTREPRISE_GENERALE 'entreprise generale
.Cells(emptyRow, 7) = Me.TYPE_COMPTAGE 'type de comptage
.Cells(emptyRow, 8) = Me.BUREAU_ETUDE 'Nom du bureau d'etude
.Cells(emptyRow, 9) = Me.DEP_BE 'département BE
' .Cells(emptyRow, 10) = Me. 'code postal
.Cells(emptyRow, 11) = Me.fdruyti
.Cells(emptyRow, 12) = Me.ghhgj
.Cells(emptyRow, 13) = Me.dgbjkfh
.Cells(emptyRow, 14) = Me.rjehthj
.Cells(emptyRow, 15) = Me.jghtt
.Cells(emptyRow, 16) = Me.AUTRE 'AUTRE
.Cells(emptyRow, 17) = Me.AUCUN 'AUCUN
.Cells(emptyRow, 18) = Me.TYPE_MATERIEL 'TYPE DE MATERIEL EN PLACE
.Cells(emptyRow, 19) = Me.Commentaires 'Commentaires
End With
End Sub
Dernière édition: