I have a string with multiple email addresses separated by semicolons and want to split them into separate values.
Dim RecipientArray() As Variant 'I've also tried as string
Debug.Print txtRecipients.Value
RecipientArray = Split(txtRecipients.Value, ";") 'error happens here
For i = 0 To UBound(RecipientArray)
Debug.Print RecipientArray(i)
Next
Run Code Online (Sandbox Code Playgroud)