Removing special characters

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I am somewhat new to Outlook VBA but can ususally understand enough of some
resonable code to make it work for my situation.

I need to create a macro to remove special characters from all emails
received.
To be specific, we have certain emails that contain a Form Feed character
which causes an extra page to be printed. The sender of this emails send to
various other people that may or may not require the FF character and is
reluctant to remove it.

TIA
DTL
 
I'm not sure if this applies in your case, but in Options there's a setting
to remove extra line breaks in plain text messages.

Otherwise, you can use some VBA functions like InStr (to search for an
occurrence of a string within a string), Chr (to get ASCII character from the
ASCII Character Code value) and Asc (to do the reverse of the previous). A
carriage return/linefeed has an ASCII code of 10 or 13.
 
Back
Top