I am trying to shorten this part of my code with what I searched and thought could be done.
From this:
To This:
The error I'm getting is "Subscript out of range" with the : Next highlighted.
What am I missing (or have wrong) in that line?
Thanks for looking.
From this:
Code:
With CreateObject("Scripting.Dictionary")
.CompareMode = vbTextCompare
For i = 1 To UBound(a, 1)
z = a(i, 1) & ";" & a(i, 2) & ";" & a(i, 3) & ";" & a(i, 4) _
& a(i, 5) & ";" & a(i, 6) & ";" & a(i, 7) & ";" & a(i, 8)
To This:
Code:
For ii = 1 To UBound(a, 2): z = a(i, ii) & ";": Next
The error I'm getting is "Subscript out of range" with the : Next highlighted.
What am I missing (or have wrong) in that line?
Thanks for looking.