--
With wb.AddTable("","Table1")
\'Dim dt As DataTable = cmd.ExecuteReader
.Primarykey = "_Identify" \'设置主键
.ActiveSheet = "menu" \'设置菜单
\'.CreateFromDataTable(dt)
End With
.RowHead = 1 \'左边第一列作为行头
.Alternate = 3
Dim nms() As String = {"用户姓名","楼盘","单元房号","客户等级","用户电话","用户微信","户型" ,"状态"}
.Head.AddRow(nms)
For Each r As DataRow In DataTables("终端用户表").sqlSelect("[报备人] = \'" & name & "\'", "", "日期 Desc")
With .Body.AddRow(r("用户姓名"),r("楼盘"),r("单元房号"),r("客户等级"),"<a href=\'tel:" & r("用户电话") & "\'>" & r("用户电话") & "</a>",r("用户微信"),r("户型"),r("状态"))
\'.AddCell(Format(r("日期"),"MM月dd日"))
End With
Next
End With
还是不对哦