Dim t As Table = Tables("表A")
Dim a As Integer = t.rows.count
Dim cn As Integer = 10
Dim b As Integer = Math.Floor(a / cn) * cn
Dim idx As Integer = 1
Output.Show(b)
For i As Integer = 0 To b-1 Step cn
For j As Integer = 0 To cn - 1
Output.Show(i+j)
t.Rows(i+j)("组号") = Format(idx,"00")
Next
idx += 1
Next
For i As Integer = b To a - 1
Output.Show(i)
t.Rows(i+j)("组号") = Format(idx,"00")
Next