Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Outlook / Programming VBA / January 2006

Tip: Looking for answers? Try searching our database.

How do I replace 'ABC' with 'A23' in multiple email messages

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
abmfan - 27 Jan 2006 17:09 GMT
I have over 100 messages where I need to change 4 text strings to the same
replacement string for each original string. Can I create a Outlook Rule or a
VB script to do this, under the Rules facility of Outlook?
Michael Bauer - 30 Jan 2006 06:34 GMT
Am Fri, 27 Jan 2006 09:09:03 -0800 schrieb abmfan:

You can´t create a rule but a VBA method to do the replacement. Use a For
Each loop to go through all the Items in a folder.

In OL >= XP you can search in the Item´s Body property with InStr and
replace with the Replace function. After the replacement call the Item´s
Save method.

Signature

Viele Gruesse / Best regards
Michael Bauer - MVP Outlook
 -- www.vbOffice.net --

> I have over 100 messages where I need to change 4 text strings to the same
> replacement string for each original string. Can I create a Outlook Rule or a
> VB script to do this, under the Rules facility of Outlook?
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.