Bug? [Not a Bug] Returning a value in a "For Next" statement returns warning #1

LWGShane

Well-Known Member
Licensed User
Longtime User
See attached screenshot for reference.
 

Attachments

  • ForNextBug.PNG
    ForNextBug.PNG
    12.1 KB · Views: 218

stevel05

Expert
Licensed User
Longtime User
Well, the message is correct, if the first test fails on the first iteration the sub will return Null and the 'Next' statement will never be reached.
 

LWGShane

Well-Known Member
Licensed User
Longtime User
@stevel05 - Oh alright. For me it was just weird that it was marked like that.
@wonder - Thanks, that fixed it.
 
Top