Adding text to subject

Joined
Feb 14, 2007
Messages
1
Reaction score
0
I have a macro that inserts a word or two at the start of the subject field, keeping whatever subject text that's already there, as an "addendum":

On Error Resume Next
Set msg = Application.ActiveInspector.CurrentItem
If Not msg Is Nothing Then
msg.Subject = "TEXT INSERTED " + msg.Subject
End If

This works fine as long as the cursor isn't in the subject field. If it is, the original subject text is replaced with whatever text was the subject of the last message I used the macro with.

I suspect the subject isn't "saved" until the cursor is moved to another field - but I can find no way to tell Outlook to move the cursor away from the subject field before performing its real work. Is there another way to accomplish what I want??
 

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