Hi Team,
I want to read Bank accounts of Column A via collection
and print out bank accounts back in Column B.
Attached expected output snapshot
View attachment 14932
End Sub
I want to read Bank accounts of Column A via collection
and print out bank accounts back in Column B.
Attached expected output snapshot
VBA Code:
Sub coll()
Dim coll As New Collection
Dim i As Long
'Read Data from worksheet
For i = 2 To 7
coll.Add Range("A" & i).Value
Next i
'WriteData back to worksheet in Column C.
For i = 1 To coll.Count
Range("C" & 1 + i).Value = coll(i)
Next i
View attachment 14932
End Sub