trprasad78
Member
Hello experts ,
In below code "mycost" say's "Subscript Out Of Range" then it has to exit from DO loop
Please give your suggestion.
In below code "mycost" say's "Subscript Out Of Range" then it has to exit from DO loop
Please give your suggestion.
Code:
Do
LEPro_Cost = LEPro_Cost + myCost(1, i)
LePro_Rev = LePro_Rev + myRev(1, i)
Debug.Print i, Month(DateRng(1, i)), LEPro_Cost, LePro_Rev
i = i + 1
Loop Until Month(DateRng(1, i)) = 4