G
Guest
Hi,
I'm running into a strange problem with Outlook when I run the following
code.
Sub Item_PropertyChange(ByVal Name)
If (Name = "To") Then
Dim oCopiedItem
Set oCopiedItem = Item.Copy
' do stuff with oCopiedItem object
End If
End Sub
When I add a recipient to the TO field, the code works fine. When I delete
that same recipient from the TO field leaving it blank, I get an "Array Index
Out of Bounds" error.
This code is on the main email form - but I have also put the same code on a
custom form and have the same problem.
Has anyone run into this issue before?
I'm running into a strange problem with Outlook when I run the following
code.
Sub Item_PropertyChange(ByVal Name)
If (Name = "To") Then
Dim oCopiedItem
Set oCopiedItem = Item.Copy
' do stuff with oCopiedItem object
End If
End Sub
When I add a recipient to the TO field, the code works fine. When I delete
that same recipient from the TO field leaving it blank, I get an "Array Index
Out of Bounds" error.
This code is on the main email form - but I have also put the same code on a
custom form and have the same problem.
Has anyone run into this issue before?