发布网友 发布时间:2022-04-25 21:41
共1个回答
热心网友 时间:2022-06-17 18:34
Private Sub Worksheet_SelectionChange(ByVal Target As Range)追答Cells(6, 18) = Application.WorksheetFunction.Sum(Range("g5:g&"i""))
改
Cells(6, 18) = Application.WorksheetFunction.Sum(Range("g5:g" & i))
Cells(6, 18) = Application.WorksheetFunction.Sum(cells(5,7),cells(i,7)
改
Cells(6, 18) = Application.WorksheetFunction.Sum(range(cells(5,7),cells(i,7)))
简单的说就是,你写的不规范