Keeing an outlook form in focus

T

Tracey Holland

Hi,

I have used the following code to initialize an outlook form when the
user sends an email.

Private Sub objMailItem_Send(Cancel As Boolean)

userfrmsaveemail.Show vbModal

End Sub

Unfotunately when the user clicks on the send button the form opens
back at the outlook application window instead of in front of the
message window.
The second subprocedure below, initializes the same outlook form when
the user opens a recieved email, and the form opens as I would like in
front of the message window.

Private Sub objMailItem_Read()

userfrmsaveemail.Show vbModal

End Sub

Does anyone know how to resolve the issue when sending mail?

Thanks in advance,

Tracey
 
Top