EXCEL vba出现 运行时错误1004:应用程序定义或对象定义错误
Sub余额()'PrivateSubWorksheet_SelectionChange(ByValTargetAsRange)Dimrr=Sheet4.Cells(Row...
Sub 余额()'Private Sub Worksheet_SelectionChange(ByVal Target As Range)Dim rr = Sheet4.Cells(Rows.Count, 4).End(xlUp).Row
With Application.WorksheetFunctionFor c = 2 To 6For d = 4 To ryu = yu + .SumProduct((Range("b4:b" & d) = Range("b" & d)) * (Range("d4:d" & d) = Sheet1.Range("j" & c)) * Range("e4:e" & d)) 运行到这里时出现错误NextNextEnd WithEnd Sub 展开
With Application.WorksheetFunctionFor c = 2 To 6For d = 4 To ryu = yu + .SumProduct((Range("b4:b" & d) = Range("b" & d)) * (Range("d4:d" & d) = Sheet1.Range("j" & c)) * Range("e4:e" & d)) 运行到这里时出现错误NextNextEnd WithEnd Sub 展开
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询