Boostez vos compétences Excel avec notre communauté !

Rejoignez Excel Downloads, le rendez-vous des passionnés où l'entraide fait la force. Apprenez, échangez, progressez – et tout ça gratuitement ! 👉 Inscrivez-vous maintenant !

jeanluc67

XLDnaute Nouveau
Option Explicit

Private Sub cmdEnvoi_Click()

Bonjour,
Voici un code avec une erreur pour l'envoi des données dans le tableau ligne par ligne.


Dim AA As Integer
AA = Range("A2").Value
Dim i As Integer
Dim WSR As Worksheet

Set WSR = Sheets(AA)

i = WSR.Range("A65536").End(xlUp).Row + 1

WSR.Range("A" & i) = txtDate
WSR.Range("B" & i) = ComboBox1
WSR.Range("C" & i) = txtProduit
WSR.Range("D" & i) = txtNumC
WSR.Range("E" & i) = txtNumL
WSR.Range("F" & i) = txtNumB
WSR.Range("G" & i) = TextBox1
Clean
End Sub

Private Sub cmdExit_Click()
Unload Me
End Sub

Private Sub Clean()
Dim CTRL As Control

For Each CTRL In Controls
If TypeOf CTRL Is MSForms.TextBox Then CTRL.Value = ""
Next CTRL
End Sub

Private Sub ComboBox1_Change()

End Sub

Private Sub CommandButton1_Click()

End Sub

Private Sub CommandCalendrier1_Click()
usfPos1.Show
End Sub

Private Sub CommandCalendrier_Click()

End Sub

Private Sub Label1_Click()

End Sub

Private Sub TextBox1_Change()

End Sub

Private Sub MonthView1_DateClick(ByVal DateClicked As Date)
txtDate.Value = DateClicked
End Sub


Private Sub TextBox2_Change()

End Sub

Private Sub txtDate_Change()

End Sub

Private Sub txtNumB_Change()

End Sub

Private Sub txtNumL_Change()

End Sub

Private Sub txtProduit_Change()

End Sub

Private Sub UserForm_Initialize()
txtDate = Date
End Sub
 
- Navigue sans publicité
- Accède à Cléa, notre assistante IA experte Excel... et pas que...
- Profite de fonctionnalités exclusives
Ton soutien permet à Excel Downloads de rester 100% gratuit et de continuer à rassembler les passionnés d'Excel.
Je deviens Supporter XLD

Discussions similaires

Réponses
3
Affichages
353
Réponses
5
Affichages
564
Réponses
5
Affichages
645
Retour