Link to home
Start Free TrialLog in
Avatar of trixits
trixits

asked on

How to change the default subject line prefix ("re:" and "fwd:")

I was wondering if it is possible to change the default subject prefix when you forward or reply to an Microsoft Outlook message.  For example, when I forward a message, the subject line automatically reads "Fwd:"<subject of original message>.  Whereas, I would like to custmize my forward subject line to read "John sends..."<subject of original message>.  
I'm using MSOutlook XP.  
Any assistance would be greatly appreciated. =o)
Avatar of shivsa
shivsa
Flag of United States of America image

Hi trixits,
no it not possible, the same question asked before on this many times, but answer was always no.

Cheers!
u have to remove it manually everytime u forward or reply the mail.
Avatar of sirbounty
shivsa - no one's been able to change the default forms for this?
ASAIK no one. but what i meant is U have to put kinna programatical ideas to hack the outlook code to change this behaviour, may be some VB code or something.  but it is not possible with some options in outlook.
ASKER CERTIFIED SOLUTION
Avatar of stefri
stefri
Flag of France image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
I thought there would be a way.  This worked for me.
Do not accept this as an answer, but to alter stefri's post to include RE (replies), you can use the following:

Private Sub application_ItemSend(ByVal Item As Object, Cancel As Boolean)
Dim myOwnText As String
Dim subj As String
Select Case UCase(Left(Item.Subject, 2))
    Case "FW"
        myOwnText = "Forwarded by Me"    '<-------- change to whatever you want
    Case "RE"
        myOwnText = "Replied to by Me"   '<-------- change to whatever you want
End Select
    subj = Mid(Item.Subject, 3)
    Item.Subject = myOwnText & subj
    Cancel = False
End Sub


Good luck!
Any success with the little code above?
You have to set the Macro security to Mediulm (Tools/Macro/Security)
If set to High, macros are not fired.

Stefri
Avatar of trixits
trixits

ASKER

Thank for all the posts.  I will try this code this evening and let you know...
I was looking for similar code for Outlook 2000, I gave stefri's code a try, but no luck.
What is your prob?
Where does it hang?
After copying the code, you have to set the Macro security to Medium, save the project when closing outlook
Upon restarting OL, accept the macro activation

Stefri
I set macro security to medium. (Tools/Macro/Security)
I even tried setting my Secure content options to medium (Tools/Option/Security)

I followed your directions to the letter above.
Closed Outlook, I get a prompt to save the VBA project "VBAProject.OTM" which I do.

I reopen Outlook, with no errors, but no prompts to enable macro either. Subject prefix remains unchanged when forwarding. No difference other than it just seems to not be working. If I go back into the VB editor I am prompted then to enable macros.

This is for Outlook 2000, I'm not sure if it handles things that much diffrently than 2002 when it comes to VB code.
You are right....for ol2002
Apparently you have to open VBA then close it to allow macro to be safely run
If you set the macro level to Low, it does not fire as well in OL2002, I am voiceless....

I will try with OL2000 at office tomorrow
Stay tune
you wont believe it....
instead of Private Sub application_ItemSend(ByVal Item As Object, Cancel As Boolean), use
               Private Sub Application_ItemSend(ByVal Item As Object, Cancel As Boolean) then the macro warning is displayed and macro will be executed!!!!
I did not know VBA was case sensitive....adding some extra security!
stefri
VBA is case sensitive? I never knew, but then again I rarely work with it. :) In any case that change did the trick and it works as designed.

Thanks stefri!
seems to be only case sensitve for outlook events.

Stefri
trixits
No news from you. Did the modification application_ to Application_ worked
Stefri