Salut a tous/toutes
Je cherche a mettre en place un bouton parcourir permettant a l'utilisateur de ma fonction de sélectionner un fichier (dans un userform). J'y arrive mais cependant, je voudrais changer une chose: Je voudrais que lorsque l'utilsateur choisi son fichier, je n'affiche que les fichiers .txt et aucun autre.
J'ai ca pour l'instant:
Private Sub CommandButton1_Click()
CommonDialog1.ShowOpen
If CommonDialog1.FileName = "" Then
Exit Sub
End If
TextBox1.Text = CommonDialog1.FileName
End Sub
Si qqn peut voler a mon secours
