[求助]EXCEL表合并数据 Post By:2013/8/25 16:16:00 [显示全部帖子]
打开EXCEL表合并数据
Dim dlg As New OpenFileDialog '定义一个新的OpenFileDialog dlg.Filter= "excel文件|*.xls" '设置筛选器 If dlg.ShowDialog = DialogResult.Ok Then '如果用户单击了确定按钮 Dim mg As New Merger mg.SourcePath = dlg.FileName mg.SourceTableName = "物料信息" mg.DataTableName = "物料信息" mg.Merge() End If