VB script macro Loop? RRS feed

  • General discussion

  • I wish to create at macro loop in VBscript.

    The loop must repeat until a designated number is reached and skip

    every other number or (step 2) Example: 11 to 273  or 10 to 272

    In the ten digit line of code, only the three digit part of the number must change each time; 61106(011-273)AA 

    There is more to the macro before and after but, all would be repeated each time the above is the only number I need to be variable.

    Any help in creating a working for next/loop in VBscript would be appreciated.

    I have already researched tried and failed to get this to work.

    If necessary I will include the full code so you can pin point what I'm doing wrong.

    Although i'm fairly sure it's a matter of proper placement or punctuation.?    

    • Moved by Reed KimbleMVP Saturday, May 26, 2018 1:29 PM vb script in vb.net language
    • Changed type Bill_Stewart Friday, July 27, 2018 8:43 PM
    • Moved by Bill_Stewart Friday, July 27, 2018 8:45 PM This is not "teach me basics of cmd.exe batch scripting" forum
    Saturday, May 26, 2018 1:12 AM

All replies