Iam trying to Open an Outlook email Windows with the Below Codes:
Dim i As Integer
Dim strlstData As String
Dim AttachFile As String
For i = 0 To Me.lstEmails.ListCount - 1
strlstData = strlstData & Me.lstEmails.ItemData(i) & ";"
Next i
AttachFile = strlstData
Call SendHTMLEmail(" ", " ", " ", True, , Array(AttachFile))
Error Description is File Name or Directory Name is not Valid.
if the lstBox has one file i dont have a problem. I think the issue is with the file seperator. have tried : , ; . but getting the same error. Tried after strlstData as well. both resulting in the same error
Dim i As Integer
Dim strlstData As String
Dim AttachFile As String
For i = 0 To Me.lstEmails.ListCount - 1
strlstData = strlstData & Me.lstEmails.ItemData(i) & ";"
Next i
AttachFile = strlstData
Call SendHTMLEmail(" ", " ", " ", True, , Array(AttachFile))
Error Description is File Name or Directory Name is not Valid.
if the lstBox has one file i dont have a problem. I think the issue is with the file seperator. have tried : , ; . but getting the same error. Tried after strlstData as well. both resulting in the same error