Results 1 to 2 of 2

Thread: VBA Code to Find & Remove certain text from email body

  1. #1
    Seeker Mahesh Babu's Avatar
    Join Date
    Nov 2012
    Hyderabad, Andhra Pradesh, India

    VBA Code to Find & Remove certain text from email body

    Register for a FREE account, and/
    or Log in to avoid these ads!

    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.

  2. #2
    Administrator Ken Puls's Avatar
    Join Date
    Mar 2011
    Nanaimo, BC, Canada
    Blog Entries
    Excel Version
    Excel Office 365 Insider

    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?
    Ken Puls, FCPA, FCMA, MS MVP

    Learn to Master Your Data at the Power Query Academy (the world's most comprehensive online Power Query training), with my book M is for Data Monkey, or our new Power Query Recipe cards!

    Main Site: -||- Blog: -||- Forums:
    Check out the Excelguru Facebook Fan Page -||- Follow Me on Twitter

    If you've been given VBA code (a macro) for your solution, but don't know where to put it, CLICK HERE.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts