CatLadee
New Member
- Joined
- Sep 7, 2018
- Messages
- 29
Hi all,
Any ideas why this nested loop is staying on just one row and not pulling down? Thanks in advance - CatLadee
Next intOuter
Any ideas why this nested loop is staying on just one row and not pulling down? Thanks in advance - CatLadee
Code:
r = 1
[COLOR=#00007F][FONT=Calibri]For[/FONT][/COLOR][COLOR=#3F3F3F][FONT=Calibri] intOuter = 1 [/FONT][/COLOR][COLOR=#00007F][FONT=Calibri]To[/FONT][/COLOR][COLOR=#3F3F3F][FONT=Calibri] intOptions - 1[/FONT][/COLOR]
[COLOR=#00007F][FONT=Calibri]For[/FONT][/COLOR][COLOR=#3F3F3F][FONT=Calibri] intInner = intOuter + 1 [/FONT][/COLOR][COLOR=#00007F][FONT=Calibri]To[/FONT][/COLOR][COLOR=#3F3F3F][FONT=Calibri] intOptions[/FONT][/COLOR]
[COLOR=#00007F][FONT=Calibri] With[/FONT][/COLOR][COLOR=#3F3F3F][FONT=Calibri] Range("Output_Tbl")[/FONT][/COLOR]
[COLOR=#3F3F3F][FONT=Calibri] .Offset(r, 0).Value = intPairs[/FONT][/COLOR]
[COLOR=#3F3F3F][FONT=Calibri] .Offset(r, 1).Value = intOuter[/FONT][/COLOR]
[COLOR=#3F3F3F][FONT=Calibri] .Offset(r, 2).Value = arrOptions(r)[/FONT][/COLOR]
[COLOR=#3F3F3F][FONT=Calibri] .Offset(r, 3).Value = intInner[/FONT][/COLOR]
[COLOR=#3F3F3F][FONT=Calibri] .Offset(r, 4).Value = arrOptions(r)[/FONT][/COLOR]
[COLOR=#00007F][FONT=Calibri] End [/FONT][/COLOR][COLOR=#00007F][FONT=Calibri]With[/FONT][/COLOR]
[COLOR=#00007F][FONT=Calibri]Next[/FONT][/COLOR][COLOR=#3F3F3F][FONT=Calibri] intInner[/FONT][/COLOR]
[COLOR=#00007F][FONT=Calibri]Next[/FONT][/COLOR][COLOR=#3F3F3F][FONT=Calibri] intOuter[/FONT][/COLOR]
Next intOuter