When replying or fw how can i remove that message.that come automatically in the subject as Re\Fw

Posted on 2010-08-27
Last Modified: 2012-05-10

When replying or fw how can i remove that message.that come automatically in the subject as Re\Fw.

I want that to happen to all emails that i forward or reply.

Question by:bsharath
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions

Expert Comment

ID: 33547202
Pretty simple to just highlight and delete the subject and type your own in there.  Same with the body just<ctrl>a to select all and delete.  I do that all the time especially to clean up multiple forwards.  Highlight the orig text/photos and cut/paste back then delete all the forward marks lines etc.
LVL 76

Expert Comment

by:David Lee
ID: 33547617
Hi, Sharath.

This is another question that's difficult to solve because of the way Outlook works.  In order to detect when a message is being replied to or forwarded requires that the code set a watch on it.  Seems simple enough until you consider that you can open more than one message at a time.  That means the code has to be able to monitor multiple items at once.  Here's what happens if the code can't monitor multiple items at once.  You open message #1 and the code begins monitoring it.  You then open item #2 and the code drops the monitor on the first item and begins monitoring the second item.  You then close item #2.  The code stops monitoring it and is now monitoring nothing.  When you reply to item #1 nothing happens.  Unfortunately, monitoring multiple items at once is a major undertaking.  It requires writing something called a wrapper class.  This class can monitor multiple open items, but as I said it is a MAJOR undertaking.  That's in the realm of professional programming.  

A simpler solution is to write a macro that only works for one item and only for items in the inbox.  Such a solution will not work for items that aren't in the inbox and will fail completely if two items are opened at once.  

A better solution is to add code to the ItemSend subroutine that strips the "RE:" or "FW:" as the messages are sent instead of attempting to strip them when you click reply or forward.
LVL 11

Author Comment

ID: 33548536
Hi David,

A better solution is to add code to the ItemSend subroutine that strips the "RE:" or "FW:" as the messages are sent instead of attempting to strip them when you click reply or forward.

The above seems fine. If i cannot see the change i dont mind. If the users can get the subject without them i am happy. Though i can see them in the sent mails
SharePoint Admin?

Enable Your Employees To Focus On The Core With Intuitive Onscreen Guidance That is With You At The Moment of Need.

LVL 76

Accepted Solution

David Lee earned 500 total points
ID: 33550822
This should do it.  Follow these instructions to add the code to Outlook.

1.  Start Outlook
2.  Click Tools > Macro > Visual Basic Editor
3.  If not already expanded, expand Microsoft Office Outlook Objects and click on ThisOutlookSession
4.  Copy the code from the Code Snippet box and paste it into the right-hand pane of Outlook's VB Editor window
5.  Edit the code as needed.  I included comment lines wherever something needs to or can change
6.  Add the following line of code to your existing ItemSend subroutine:
7.  Click the diskette icon on the toolbar to save the changes
8.  Close the VB Editor
9.  Click Tools > Trust Center
10.  Click Macro Security
11. Set Macro Security to "Warnings for all macros"
12. Click OK
13. Close Outlook
14. Start Outlook.  Outlook will display a dialog-box warning that ThisOutlookSession contains macros and asking if you want to allow them to run.  Say yes.
Sub StripFWandRE(olkMsg As Outlook.MailItem)
    If (Left(olkMsg.Subject, 4) = "FW: ") Or (Left(olkMsg.Subject, 4) = "RE: ") Then
        olkMsg.Subject = Mid(olkMsg.Subject, 5)
    End If
End Sub

Open in new window


Expert Comment

ID: 33555989
This prob can be resolved by making changes in the code, as mentioned by BlueDevilFan in his reply. But, playing with codes can be risky so better remove RE: or FW: manually.

Because, while playing with codes if you do some wring changes then Outlook  may create another sort of issues.

Expert Comment

ID: 34688752
Code is not Working for me. While adding the Code in Apllication_Itemsend, It says an Argument is required.
I am new to VB.Can you help me get this right,
LVL 76

Expert Comment

by:David Lee
ID: 34690425
The line of code in Application_ItemSend should be

StripFWandRE Item

Expert Comment

ID: 34732906
Thanks !!!! Its working Perfectly
LVL 76

Expert Comment

by:David Lee
ID: 34821464
You're welcome.

Featured Post

Office 365 Training for IT Pros

Learn how to provision tenants, synchronize on-premise Active Directory, implement Single Sign-On, customize Office deployment, and protect your organization with eDiscovery and DLP policies.  Only from Platform Scholar.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

You need to know the location of the Office templates folder, so that when you create new templates, they are saved to that location, and thus are available for selection when creating new documents.  The steps to find the Templates folder path are …
This article helps those who get the 0xc004d307 error when trying to rearm (reset the license) Office 2013 in a Virtual Desktop Infrastructure (VDI) and/or those trying to prep the master image for Microsoft Key Management (KMS) activation. (i.e.- C…
The viewer will learn how to create two correlated normally distributed random variables in Excel, use a normal distribution to simulate the return on different levels of investment in each of the two funds over a period of ten years, and, create a …
Do you want to know how to make a graph with Microsoft Access? First, create a query with the data for the chart. Then make a blank form and add a chart control. This video also shows how to change what data is displayed on the graph as well as form…

696 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question