Dim i As Integer
Dim r, c, r2, c2 As Object
For i = fpSpread1.SelectionCount - 1 To 0 Step -1
fpSpread1.GetSelection(i, c, r, c2, r2)
fpspread1.DeleteRows(r,r2-r+1)
fpSpread1.MaxRows = r2 - r + 1
Next i
我看网上说这样写,但 fpSpread1.GetSelection(i, c, r, c2, r2)
fpspread1.DeleteRows(r,r2-r+1) 提示语法错误 |