Yvon petit scarabbée du b
XLDnaute Nouveau
Bonsoir à tous,
Je tourne en rond et j'aurai besoin d'un ptit coup de main, voila le sujet.
Via textbox contenant un nom, Je souhaite affiché dans une listbox, tous les memes noms contenu dans un fichier :
Textbox = Machin /listbox = Machin Rouen, Machin Rennes etc...
Voila ou j'en suis dans le code :
'initialise la listbox
Dim a As Integer
Dim y As Integer
a = ListBox1.ListIndex + 3
For y = textbox1.value
With Sheets("Fichier client")
.Cells(a, y).Value = ListBox1.Value
End With
Next y
Bien entendu cela ne fonctionne pas, par avance merci du coup de main
a+
Yvon
Je tourne en rond et j'aurai besoin d'un ptit coup de main, voila le sujet.
Via textbox contenant un nom, Je souhaite affiché dans une listbox, tous les memes noms contenu dans un fichier :
Textbox = Machin /listbox = Machin Rouen, Machin Rennes etc...
Voila ou j'en suis dans le code :
'initialise la listbox
Dim a As Integer
Dim y As Integer
a = ListBox1.ListIndex + 3
For y = textbox1.value
With Sheets("Fichier client")
.Cells(a, y).Value = ListBox1.Value
End With
Next y
Bien entendu cela ne fonctionne pas, par avance merci du coup de main
a+
Yvon