Dim dlg As New OpenFileDialog
dlg.Filter= "Excel文件|*.xlsx"
dlg.MultiSelect = True '允许选择多个文件
If dlg.ShowDialog =DialogResult.OK Then
For Each fl As String In dlg.FileNames
Dim mg As New Merger
mg.SourcePath = fl
mg.Format = "excel2007" '指定格式
mg.SourceTableName = "sheet1$"
mg.DataTableName = "一键导入表"
mg.Merge()
Next
End If