Private Sub CommandButton1_Click()
Dim FD As FileDialog
Dim i&
'---
Set FD = Application.FileDialog(msoFileDialogFilePicker)
FD.Show
'---
If FD.SelectedItems.Count > 0 Then
If LCase(Right(FD.SelectedItems(1), 4)) = ".xls" Then
Application.Workbooks.Open FD.SelectedItems(1)
Else
MsgBox "Le fichier sélectionné n'est pas un classeur Excel"
End If
End If
Unload Me
End Sub