把表格合并到 项目中的时候,能不能对每一行数据进行一定的处理在进行合并呢。比如判断 某一列内容是否与项目表中有重复
Dim mg As New Merger
Dim dlg As New OpenFileDialog
Dim pth As String
Dim dlg2 As New OpenFileDialog
Dim pth2 As String
If dlg.ShowDialog =DialogResult.OK Then
mg.SourcePath = dlg.FileName
Dim dt As String = right(dlg.FileName.Replace(".xlsx",""),7))
mg.Format = "excel" '指定格式
mg.SourceTableName = "表" '指定要合并的表
mg.DataTableName = "表" '指定接收数据的表
mg.Merge() '开始合并
End If