Ouverture extension multiple en VBA
Résolu
juer31
Messages postés
114
Date d'inscription
Statut
Membre
Dernière intervention
-
juer31 Messages postés 114 Date d'inscription Statut Membre Dernière intervention -
juer31 Messages postés 114 Date d'inscription Statut Membre Dernière intervention -
A voir également:
- Vba allowmultiselect
- Excel compter cellule couleur sans vba - Guide
- Incompatibilité de type vba ✓ - Forum VB / VBA
- Mkdir vba ✓ - Forum VB / VBA
- Erreur 13 incompatibilité de type VBA excel ✓ - Forum Excel
- Vba range avec variable ✓ - Forum VB / VBA
2 réponses
Bonjour
voila une macro pour pour ouvrir un fichier XLS*
A+
Maurice
voila une macro pour pour ouvrir un fichier XLS*
Sub ListeFichier() Dim Dossier As FileDialog Chemin = ActiveWorkbook.Path & Application.PathSeparator Set Dossier = Application.FileDialog(msoFileDialogOpen) With Dossier .AllowMultiSelect = False .InitialFileName = Chemin .Title = "Choix d'une fichier" With .Filters .Clear .Add "Fichiers XLS*", "*.xls*", 1 End With .InitialFileName = "" 'Interdit la multi sélection .AllowMultiSelect = False If .Show = -1 Then Fichier = .SelectedItems(1) ' Call LireFichier(Fichier) Else Exit Sub End If End With Set Dossier = Nothing End Sub
A+
Maurice