Dim cm = e.form.Controls("ComboBox1").text
Dim App As New MSExcel.Application
Dim Wb As MSExcel.Workbook = App.WorkBooks.Open(ProjectPath & "Attachments\全电fa piao.xlsx")
App.Visible = True
Dim Ws As MSExcel.WorkSheet = Wb.WorkSheets("明细模板")
Dim r As Integer
Dim m As Integer = 1
Dim u As Table = Tables("销售开piao明细")
For i As Integer = 0 To u.Rows.count - 1
Dim u1 As Row = u.Rows(i)
Ws.Range("A" & i + 4).Value = u1("开piao品名")''''''货物名称
Ws.Range("H" & i + 4).Value = u1("税率")''''''税率
Next
Wb.Save()
现在可以把数据生成后,全部引用到一个表,但是现在想:生成的表超80行后就另存表,重新引用