VBA下标出范围错误 - 在多个条件下进行



我正在收到错误消息" subscript"在多个条件线时位于do的范围内。有人可以帮忙,看看为什么我的情况错了吗?非常感谢!

Do While ((fixeddaysdiff_input(i + C, 2) = fixeddaysdiff_input(i + C - 1, 2)) _
     And (fixeddaysdiff_input(i + C, 1) = fixeddaysdiff_input(i + C - 1, 1))) _
     Or ((fixeddaysdiff_input(i + C, 2) = fixeddaysdiff_input(i + C + 1, 2)) _
     And (fixeddaysdiff_input(i + C, 1) = fixeddaysdiff_input(i + C + 1, 1)))
     C = C + 1
     accumulatedvalue(i + C, 1) = accumulatedvalue(i + C - 1, 1) + fixeddaysdiff_output(i, 4) - fixeddaysdiff_output(i, 22)
Loop

请在这里看。
昨天我只写了-1:(((

re:"下标"
1.仔细阅读此。
2.检查秘密变量i的行为

最新更新