Load excel file : GetOpenFilename « File Path « VBA / Excel / Access / Word






Load excel file

 
Sub LoadExcelFile()
  Dim result
  result = Application.GetOpenFilename("Excel files,*.xl?", 1)
  If result = False Then Exit Sub
  Workbooks.Open result
End Sub

 








Related examples in the same category

1.Selecting multiple files
2.Application.GetOpenFilename
3.Get the selected file name in a file open dialog
4.Use filter in Open file dialog