Solved

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

Posted on 2010-08-27
9
1,277 Views
Last Modified: 2012-05-10
Hi,

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.

regards
Sharath
0
Comment
Question by:bsharath
9 Comments
 
LVL 7

Expert Comment

by:kpmartin
Comment Utility
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.
0
 
LVL 76

Expert Comment

by:David Lee
Comment Utility
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.
0
 
LVL 11

Author Comment

by:bsharath
Comment Utility
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
0
 
LVL 76

Accepted Solution

by:
David Lee earned 500 total points
Comment Utility
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:
    StripFWandRE
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)
        olkMsg.Save
    End If
End Sub

Open in new window

0
Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

 
LVL 7

Expert Comment

by:ComputerBeast
Comment Utility
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.
0
 

Expert Comment

by:SdDeo
Comment Utility
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,
 
0
 
LVL 76

Expert Comment

by:David Lee
Comment Utility
The line of code in Application_ItemSend should be

StripFWandRE Item
0
 

Expert Comment

by:SdDeo
Comment Utility
Thanks !!!! Its working Perfectly
0
 
LVL 76

Expert Comment

by:David Lee
Comment Utility
You're welcome.
0

Featured Post

Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

This article descibes how to create a connection between Excel and SAP and how to move data from Excel to SAP or the other way around.
This process describes the steps required to Import and Export data from and to .pst files using Exchange 2010. We can use these steps to export data from a user to a .pst file, import data back to the same or a different user, or even import data t…
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 …
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

728 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

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now