HELP PLEASE!!! Displaying range of numbers in word?
I am currently in the process of teaching myself vb6 at work and I am writing some code for batch no. labels. My form has 2 text boxes which the batch no. ranges are entered into, for ex. (001) - (050)! I have a command button, which once clicked, will list these in word! BUT!!! How can I display all the other 48 integer values in between aswell (002-049). Can anyone give me some advice or code plz!! Would be greatly appreciated.
Re: HELP PLEASE!!! Displaying range of numbers in word?
Use For Loop
VB Code:
For n as Integer = Val(TextBox1.Text) to Val(TextBox2.Text)
'Wherever you want to display
Msgbox n.ToString
Loop