Outlook 2016 - Create Macro button to add text in Subject

Tanja Östrand

New Member
Outlook version
Outlook 2016 32 bit
Email Account
Office 365 Exchange
Hi all,

I am very new to Scripting and are there for asking for help to create a very specific Macro

This is what I want it to happen when running it

When a user sends an email I want the macro to check if the word Encrypted: is in the subject line. If it isn't I want the user to get a popup that will say something like "You are about to send an email. Do you want to Encrypt this message?"
If they click No the message should just be sent.
If they click Yes the word "Encrytpted:" should be added to Subject and then send the message.

Is this at all possible?

If it isn't possible I would like a Macro button that just add the Encrypted: text to the subject line when clicked on.

Can you in the VBA programming say that you want the button to look a specific way or with a specific picture?

I have tried but failed to get the last thing to work.

We are using Exchange Online and Outlook 2016
I much appreciate the help if anyone can help me
 

Diane Poremsky

Senior Member
Outlook version
Outlook 2016 32 bit
Email Account
Office 365 Exchange
i have a macro that does exactly that. The macros at Add Secure to the Message Subject before Sending do most of this - I'll see if i can find the one that asks if it should be sent- i apparently didn't publish it online yet. (I'll add it to the page with the others).
 
Top