Bonsoir , j'aimerai trouver une solution pour faire un formulaire de recherche sur plusieurs feuilles :
Private Sub CommandButton3_Click()
Dim no_ligne As Integer
no_ligne = ComboBox1.ListIndex + 2
If ComboBox1.Value = "" Then
MsgBox ("Veuillez remplir le champs de recherche, puis réessayer!")
Else
With Worksheets(?) ' qu'est ce que je dois mettre pour qu'il cherche sur 6 feuilles
TextBox1.Value = .Cells(no_ligne, 1).Value
TextBox2.Value = .Cells(no_ligne, 2).Value
TextBox3.Value = .Cells(no_ligne, 3).Value
TextBox4.Value = .Cells(no_ligne, 4).Value
ComboBox2.Value = .Cells(no_ligne, 5).Value
ComboBox3.Value = .Cells(no_ligne, 6).Value
ComboBox4.Value = .Cells(no_ligne, 7).Value
TextBox5.Value = .Cells(no_ligne, 8).Value
TextBox6.Value = .Cells(no_ligne, 9).Value
TextBox7.Value = .Cells(no_ligne, 10).Value
End With
End If
End Sub