papounez
Messages postés118Date d'inscriptionsamedi 16 juillet 2005StatutMembreDernière intervention18 novembre 2008
-
11 sept. 2005 à 17:48
papounez
Messages postés118Date d'inscriptionsamedi 16 juillet 2005StatutMembreDernière intervention18 novembre 2008
-
11 sept. 2005 à 18:27
Bonjour!
je charge une ComboBox (la pas de Probleme) et suivant la selection
je voudrais ouvrir un fichier par une variable
dans une ListBox
mai la je coince
Merci
Voici mon code:
Private Sub ComboChoix_Click()
Dim i, FF, Ind As Integer
Dim Fich , Ligne As String
Ind = ComboChoix.ListIndex
Varible = ComboChoix.List(Ind)
ListTitre.Clear
FF = FreeFile
Open "E:\Mes Documents\Variable.txt" For Input As #FF
Do While Not EOF(FF)
' Récupère la ligne pointer dans le fichier
Line Input #FF, Ligne
' L'envoie dans la ListBox
ListTitre.AddItem Ligne
papounez
Messages postés118Date d'inscriptionsamedi 16 juillet 2005StatutMembreDernière intervention18 novembre 2008 11 sept. 2005 à 18:23
Ok
Merci super
je voudrais ajouter un F a ma Varible
j' essai plusieur solution mais je n"arrive pas
en voici une
[...]
Open "E:\Mes Documents" & F & Variable &
".txt" For Input As #FF