FOR count variable already in use: <name>
You used the count variable of an outer For loop as the count variable of an inner For loop. The count variable of an outer For loop may not be reused as the count variable of an inner For loop. For example:
For X% = 1 To 10
For X% = 1 To 5 ' Illegal. X% is already in use.
' ...
Next
Next
Change the count variable in one of the For loops so that they are different from each other.