参考代码,具体问题上传实例详细说明
Dim t As Table = Tables("表A")Dim r As Row = t.CurrentDim nr As Row = t.InsertNewIf r.index > 0 Then nr("第三列") = t.rows(r.index-2)("第三列") + 1Else nr("第三列") = 1End If