以文本方式查看主题

-  Foxtable(狐表)  (http://foxtable.com/bbs/index.asp)
--  专家坐堂  (http://foxtable.com/bbs/list.asp?boardid=2)
----  导出的EXCEL表自动合并列内容  (http://foxtable.com/bbs/dispbbs.asp?boardid=2&id=186500)

--  作者:hopestarxia
--  发布时间:2023/5/7 12:14:00
--  导出的EXCEL表自动合并列内容
Dim Book As New XLS.Book(ProjectPath & "Attachments\\明细表.xls")
Dim fl As String = ProjectPath & "Reports\\明细表.xls"
Book.Build()
Book.Save(fl)
Dim App As New MSExcel.Application
Dim Wb As MSExcel.WorkBook = App.WorkBooks.Open(fl)
Dim Ws As MSExcel.WorkSheet = Wb.WorkSheets(1)
App.Visible = True
ShowAppWindow("明细表",2)

老师,上面代码生成了EXCEL报表数据,我现在想将C列,如果挨着的行内容相同的,就合进行合同,请问应该如何处理?

--  作者:有点蓝
--  发布时间:2023/5/7 20:49:00
--  
参考:http://www.foxtable.com/bbs/dispbbs.asp?boardid=2&id=186279&authorid=0&page=0&star=1