小编Clo*_*ude的帖子

Split function to an array. Type mismatch error #13

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)

arrays ms-access vba split type-mismatch

5
推荐指数
1
解决办法
7384
查看次数

标签 统计

arrays ×1

ms-access ×1

split ×1

type-mismatch ×1

vba ×1