做一个按钮,执行代码
Dim idx As Integer = 1For Each r As Row In Tables("表a").rows If r("第四列") = "√" Then idx = 1 Else r("第四列") = idx idx = idx + 1 End IfNext