我收到错误消息"下标超出范围"在多个条件行的同时找到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