skacutter
New Member
- Joined
- Dec 23, 2016
- Messages
- 18
I have a collection in VBA of file paths. I need to record each value in the collection to a single cell with each value on a new line in the cell. Possible????
existing code
Followed by
Thank You
Chris
existing code
Code:
Dim colFiles As New Collection
If ListBox3.ListCount > -1 Then
For i = 0 To ListBox3.ListCount - 1
UserChanges = UserChanges & vbCrLf & ListBox3.List(i) & " " & ListBox3.List(i, 1) & " " & ListBox3.List(i, 2) & " " & ListBox3.List(i, 3)
Attachments1 = ListBox3.List(i, 3)
colFiles.Add Attachments1
Next i
End If
Followed by
Code:
If colFiles.Count > 0 Then For i = 1 To colFiles.Count
Cells(Rev_Row, "S").Value.???Add???? colFiles(i)
Next i
End If
Thank You
Chris