参考
'首先要生成汇总模式Dim r As RowDim idx As Integer = 1For i As Integer = 0 To Tables("订单").Rows.Count(True) - 1 r = Tables("订单").Rows(i,True) If r.IsGroup r("金额") = idx & " " & r("金额") idx += 1 End IfNext