R
Raymond
Hi
i,ve created this code but i'm getting error 91 on this line
Set outMailItem = Application.ActiveInspector.CurrentItem
Sub Mailitem_Open()
Dim outMailItem As MailItem
Set outMailItem = Application.ActiveInspector.CurrentItem
Dim test
If outMailItem.UnRead = False Then
myMsg = "Do you want to open this message again?"
If MsgBox(myMsg, 4) = 6 Then
test = True
'MsgBox test
UserForm1.Show
Else
test = False
MsgBox test
End If
End If
End Sub
can anyone tell why and how i can solve this problem
i,ve created this code but i'm getting error 91 on this line
Set outMailItem = Application.ActiveInspector.CurrentItem
Sub Mailitem_Open()
Dim outMailItem As MailItem
Set outMailItem = Application.ActiveInspector.CurrentItem
Dim test
If outMailItem.UnRead = False Then
myMsg = "Do you want to open this message again?"
If MsgBox(myMsg, 4) = 6 Then
test = True
'MsgBox test
UserForm1.Show
Else
test = False
MsgBox test
End If
End If
End Sub
can anyone tell why and how i can solve this problem