?
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
Medium Priority
?
1,435 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
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.
0
 
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.
0
 
LVL 11

Author Comment

by:bsharath
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
0
Free learning courses: Active Directory Deep Dive

Get a firm grasp on your IT environment when you learn Active Directory best practices with Veeam! Watch all, or choose any amount, of this three-part webinar series to improve your skills. From the basics to virtualization and backup, we got you covered.

 
LVL 76

Accepted Solution

by:
David Lee earned 2000 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:
    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
 
LVL 7

Expert Comment

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

Expert Comment

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

Expert Comment

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

StripFWandRE Item
0
 

Expert Comment

by:SdDeo
ID: 34732906
Thanks !!!! Its working Perfectly
0
 
LVL 76

Expert Comment

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

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Microsoft Office Picture Manager was included in Office 2003, 2007, and 2010, but not in Office 2013. Users had hopes that it would be in Office 2016/Office 365, but it is not. Fortunately, the same zero-cost technique that works to install it with …
With so many activities to perform, Exchange administrators are always busy in organizations. If everything, including Exchange Servers, Outlook clients, and Office 365 accounts work without any issues, they can sit and relax. But unfortunately, it…
This Experts Exchange video Micro Tutorial shows how to tell Microsoft Office that a word is NOT spelled correctly. Microsoft Office has a built-in, main dictionary that is shared by Office apps, including Excel, Outlook, PowerPoint, and Word. When …
Look below the covers at a subform control , and the form that is inside it. Explore properties and see how easy it is to aggregate, get statistics, and synchronize results for your data. A Microsoft Access subform is used to show relevant calcul…
Suggested Courses

839 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