I have the following code below.
The thing is, even if txtCCEmailAddre ss.Text is empty (no text), CCRecipeant
will return a Ubound() higher than 0 and still go in the loop.
If there's nothing to split how can CCRecipeant be a positive UBound value?
'Get the number of specified CC recipeants
CCRecipeant = txtCCEmailAddre ss.Text.Split(" ;")
'Now we need to add each one
For intCounter = 0 To CCRecipeant.Get UpperBound(0)
If CCRecipeant.Get UpperBound(0) >= 0 Then
..........some code here
End If
Next
Thanks,
Adam
The thing is, even if txtCCEmailAddre ss.Text is empty (no text), CCRecipeant
will return a Ubound() higher than 0 and still go in the loop.
If there's nothing to split how can CCRecipeant be a positive UBound value?
'Get the number of specified CC recipeants
CCRecipeant = txtCCEmailAddre ss.Text.Split(" ;")
'Now we need to add each one
For intCounter = 0 To CCRecipeant.Get UpperBound(0)
If CCRecipeant.Get UpperBound(0) >= 0 Then
..........some code here
End If
Next
Thanks,
Adam
Comment