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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top