Iam using the Below VBA Code to get Filenames to string AttachFile but iam unable to get it.
Dim i As Integer
Dim strlstData As String
Dim AttachFile As String
For i = 0 To Me.lstEmails.ListCount - 1
strlstData = Me.lstEmails.ItemData(i)
AttachFile = strlstData
Next i
i want to store the 5 File name in lstEmails to AttachFile, can u help
Dim i As Integer
Dim strlstData As String
Dim AttachFile As String
For i = 0 To Me.lstEmails.ListCount - 1
strlstData = Me.lstEmails.ItemData(i)
AttachFile = strlstData
Next i
i want to store the 5 File name in lstEmails to AttachFile, can u help