Add a Variable (Step) Range to Your ListBox
Category:Lists, Collections and Arrays
Version Compatibility: Visual Basic 6
This Code adds a Variable Step Range to a ListBox. Enter First and Last numbers in txtFirstNum/txtLastNum controls and enter a Step value in txtStep. Click on cmdAdd to Add the Range to your ListBox Note : Set txtStep Property to Causesvalidation = True. Note 2: Limit the Maxlength property values of Textboxes if needed.
Instructions: Copy the declarations and code below and paste directly into your VB project.