earldunning
Active Member
- Joined
- Nov 9, 2006
- Messages
- 263
Hello,
I have a list of UserIDs that I am grabbing as an array to populate a "To:" box in an email.
I have this all working except I want to add 2 more values to the array that are not in the list.
So what I have which works great is:
But what I want is
I am trying to pick up 2 more userIDs off the current form and add them to the standard list. I do not however want to add them permanently, only for the purpose of emailing. It errors when I try this. How do I add the 2 extra values to the end of the array? Do I need to count how many are in the original list and then increment? It seems like there should be an easy way to just add it to the end regardless.
Thoughts?
Thanks
I have a list of UserIDs that I am grabbing as an array to populate a "To:" box in an email.
I have this all working except I want to add 2 more values to the array that are not in the list.
So what I have which works great is:
Code:
Dim vaRecipients As Variant
vaRecipients = Range("CRToIDList").Value 'this is my range for my standard mailing list
But what I want is
HTML:
vaRecipients = Range("CRToIDList").Value & Range("E1").Value & Range("E2").Value
I am trying to pick up 2 more userIDs off the current form and add them to the standard list. I do not however want to add them permanently, only for the purpose of emailing. It errors when I try this. How do I add the 2 extra values to the end of the array? Do I need to count how many are in the original list and then increment? It seems like there should be an easy way to just add it to the end regardless.
Thoughts?
Thanks