Developpeur_Fou
Bonjour a tous
J'utilise la commande filedialog pour récupérer le chemin d un fichier. Tout marche bien mais un petit bug perciste.
Une fois le doc sélectionné, un epage excel s'ouvre !!
voila mon code
Private Sub mnu_fiche_Click()
Dim fso As FileDialog
Dim patch As Variant
Dim w As New Word.Application
Set fso = Application.FileDialog(msoFileDialogFilePicker)
With fso
.AllowMultiSelect = False
.Filters.Add "Document texte", "*.txt", 1
If .Show = True Then
patch = .SelectedItems(1)
Else
Exit Sub
End If
End With
je pense que c'est ici que la page excel s'ouvre
w.Documents.Open (patch) ces deux lignes n'ont aucunes influences
w.Visible = True
End Sub