To anyone who can help,
I've recently created an e-mail function that selects e-mail addresses off of a listbox where users select all the people they want to send the e-mail to.
Everything seems to work fine except when the user selects too many people. All of a sudden the rest of the e-mail addresses are not showing up. I am thinking that the string is getting too long and it won't work after so many characters, but I can't figure out what the problem is. Here is my code, if you can help me it's really appreciated:
Dim strList As String
Dim strTo As String
Dim var As Variant
Dim intnum As Integer
Dim recip(25) As Variant
strTo = ""
intnum = 0
For Each var In ListSend.ItemsSelected
strList = ListSend.ItemData(var)
recip(intnum) = strList
strTo = strTo & strList & ", "
intnum = intnum + 1
Next var
I've recently created an e-mail function that selects e-mail addresses off of a listbox where users select all the people they want to send the e-mail to.
Everything seems to work fine except when the user selects too many people. All of a sudden the rest of the e-mail addresses are not showing up. I am thinking that the string is getting too long and it won't work after so many characters, but I can't figure out what the problem is. Here is my code, if you can help me it's really appreciated:
Dim strList As String
Dim strTo As String
Dim var As Variant
Dim intnum As Integer
Dim recip(25) As Variant
strTo = ""
intnum = 0
For Each var In ListSend.ItemsSelected
strList = ListSend.ItemData(var)
recip(intnum) = strList
strTo = strTo & strList & ", "
intnum = intnum + 1
Next var