I have a piece of code in which i would like the for loop to continue to the next value of i if the value in a cell is "nil" and not execute the commands in the loop. I am unable to figure it out.
For i = 2 To n
If .Cells(i, "G").Value = "nil" Then
next i
Else
mon = month(.Cells(i, "G").Value)
acctyp = .Cells(i, "P").Value
end if
next i
Thanks in advance.
i = i + 1GoTostatement in this though. TheIfshould handle itNext i- replace it with a comment if that helps'Do Nothing.