Quantcast
Channel: VBForums - Visual Basic 6 and Earlier
Viewing all articles
Browse latest Browse all 21933

For statement excluding value.

$
0
0
How would you create a for statement that excludes certain numbers?

For example:

For j = 1 to 100

In the for statement above what would have to be changed for the values to be 1 through 100, but not including 4 and 60?

I'm actually doing this in VBA, but I think that it would be the same as in VB

Viewing all articles
Browse latest Browse all 21933

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>