Here's my template code:
Code:
Dim fDialog As Object 'Office.FileDialog
Dim varFile As Variant
Set fDialog = Application.FileDialog(3) 'msoFileDialogFilePicker
With fDialog
.AllowMultiSelect = True
.Title = "Please select files"
.Filters.Clear
.Filters.Add "Access Databases", "*.XL*"
If .Show = True Then
For Each varFile In .SelectedItems
'DoCmd.TransferSpreadsheet acImport, 8, "master_table", varFile, True, ""
Debug.Print varFile
Next
Else
MsgBox "You clicked Cancel in the file dialog box."
End If
End With