|
SRmaxrow=41 H=75
ActiveSheet.Cells(7, H + 1).Value = Application.SumProduct((Right(Range(Cells(10, H + 3), Cells(SRmaxrow, H + 3)), 2) = "钢化"), Range(Cells(10, H), Cells(SRmaxrow, H)), Range(Cells(10, H + 1), Cells(SRmaxrow, H + 1)), Range(Cells(10, H + 2), Cells(SRmaxrow, H + 2))) 为什么这样说类型不匹配
少了红色部分就可以得出结果
ActiveSheet.Cells(7, H + 1).Value = Application.SumProduct((Range(Cells(10, H), Cells(SRmaxrow, H)), Range(Cells(10, H + 1), Cells(SRmaxrow, H + 1)), Range(Cells(10, H + 2), Cells(SRmaxrow, H + 2)))
该怎么办?? |
|