For j = 0 to SpreadCount
If TypeName(ChainsDC(j,0) = "String" 'testing for an error
Goto EndLoop
Else:
For i = 0 to RscSct
...do amazing things here (no loops)
Next i
EndLoop:
Next j '<<<PROBLEM
Compiler complains Next j (line 9) is a “Next without For”.
Your IF statement is the problem. You need to add both a Then and a End If:
Edit
Your Typename is also missing a close parenthesis.