Horatio_too
New Member
- Outlook version
- Outlook 2013 32 bit
- Email Account
- Exchange Server
Hi
We have a business need to send an email and then print the message once it has been sent.
(We operate in a regulated environment and the sent emails are stored in paper files......)
We initially tried the suggestions from
https://forums.slipstick.com/threads/90476-button-to-send-and-print-emails/
which pointed us in the right direction, but unfortunately did not actually work for us.
However, we DO have some VBA that DOES now work successfully BUT only when it is run in the code window (step-by-step).
.
If we run the VBA as the users will from a button on the outlook toolbar, then it fails, as the code to print the message is executed before the message is moved from the Outbox to Sent Items.
We have tried Wait statements, loops to check for the existence of the email in Sent Items etc and ALL work fine with the code window open - and all fail "in the real world".
The current code is attached - any help or suggestions gratefully received as always.
Kind regards
Horatio_too
We have a business need to send an email and then print the message once it has been sent.
(We operate in a regulated environment and the sent emails are stored in paper files......)
We initially tried the suggestions from
https://forums.slipstick.com/threads/90476-button-to-send-and-print-emails/
which pointed us in the right direction, but unfortunately did not actually work for us.
However, we DO have some VBA that DOES now work successfully BUT only when it is run in the code window (step-by-step).
.
If we run the VBA as the users will from a button on the outlook toolbar, then it fails, as the code to print the message is executed before the message is moved from the Outbox to Sent Items.
We have tried Wait statements, loops to check for the existence of the email in Sent Items etc and ALL work fine with the code window open - and all fail "in the real world".
The current code is attached - any help or suggestions gratefully received as always.
Kind regards
Horatio_too