VBA Code to Find & Remove certain text from email body

Mahesh Babu

New member
Joined
Nov 9, 2012
Messages
7
Reaction score
0
Points
0
Location
Hyderabad, Andhra Pradesh, India
Hi All,

I want to find certain text and remove from the body of the mail. Can you help out in providing a macro(VBA Code) to delete specific text from the email body.

For example my body of the mail is as below:


I am contacting you regarding the missing information/documents of this client. Request you to provide the same.


Job ID 13353
:- 1178838
Client/Information/Year : IBM Laptop Manual for the year 2011
: Microsoft Processor Version for the year 2012

Comments Need Original 2 Copies

Request ABC bank to reply with the missing information ASAP. If not, leads to decrease in the production charges.
-----------------------------------


For every email the above highlighted text in BOLD is common. But i don't want that information. I want a macro to delete the highlighted text.
 

Ken Puls

Administrator
Staff member
Joined
Mar 13, 2011
Messages
2,520
Reaction score
5
Points
38
Location
Nanaimo, BC, Canada
Website
www.excelguru.ca
Excel Version(s)
Excel Office 365 Insider
Mahesh,

Is this related to the work we have been working on in this thread? If it is, why don't we just adjust the macro so that it doesn't pull in that info?
 
Top