A Microsoft Outlook email forum. Outlook Banter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Outlook and VBA
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

How to batch edit subject line of outlook emails



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old December 30th 06, 03:54 AM posted to microsoft.public.outlook.program_vba
Peter Walker
external usenet poster
 
Posts: 2
Default How to batch edit subject line of outlook emails

Hi, I was hoping someone could help me.

I would like to batch edit a number of email folders in outlook 2007. The
current situation is that the emails in a number of my folders have common
subject lines, for example:

[Arrow Marker #1] Debian CD
[Arrow Marker #1009] subscribe posting
[Arrow Marker #137] triathlon

What I would like to get rid if is the text '[Arrow Marker #XXXX] ' from the
Subject of each email message, where XXXX is a number that might not be
unique between emails.

Is there any VB script that could do this?

Would be most grateful for any help!

Cheers,
Peter


  #2  
Old December 30th 06, 03:53 PM posted to microsoft.public.outlook.program_vba
Sue Mosher [MVP-Outlook]
external usenet poster
 
Posts: 11,651
Default How to batch edit subject line of outlook emails

This is a basic text parsing exercise. For each message (objMsg), run code like this to find the break point:

If Left(objMsg.Subject, Len("[Arrow Marker")) = "[Arrow Marker" Then
intBreak = Instr(objMsg.Subject, "]")
If intBreak 0 Then
objMsg.Subject = Mid(objMsg.Subject, intBreak + 1)
End If
End If

I'd recommend using a search folder to gather all the marked items into one place for processing.

--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003
http://www.turtleflock.com/olconfig/index.htm
and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
http://www.outlookcode.com/jumpstart.aspx

"Peter Walker" wrote in message ...
Hi, I was hoping someone could help me.

I would like to batch edit a number of email folders in outlook 2007. The
current situation is that the emails in a number of my folders have common
subject lines, for example:

[Arrow Marker #1] Debian CD
[Arrow Marker #1009] subscribe posting
[Arrow Marker #137] triathlon

What I would like to get rid if is the text '[Arrow Marker #XXXX] ' from the
Subject of each email message, where XXXX is a number that might not be
unique between emails.

Is there any VB script that could do this?

Would be most grateful for any help!

Cheers,
Peter


  #3  
Old December 31st 06, 02:02 AM posted to microsoft.public.outlook.program_vba
Peter Walker
external usenet poster
 
Posts: 2
Default How to batch edit subject line of outlook emails

Thanks Sue for the help. I'm new to Outlook programming. I better get a
reference : )

Cheers, Peter

"Sue Mosher [MVP-Outlook]" wrote in message
...
This is a basic text parsing exercise. For each message (objMsg), run code
like this to find the break point:

If Left(objMsg.Subject, Len("[Arrow Marker")) = "[Arrow Marker" Then
intBreak = Instr(objMsg.Subject, "]")
If intBreak 0 Then
objMsg.Subject = Mid(objMsg.Subject, intBreak + 1)
End If
End If

I'd recommend using a search folder to gather all the marked items into one
place for processing.

--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003
http://www.turtleflock.com/olconfig/index.htm
and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
http://www.outlookcode.com/jumpstart.aspx

"Peter Walker" wrote in message
...
Hi, I was hoping someone could help me.

I would like to batch edit a number of email folders in outlook 2007. The
current situation is that the emails in a number of my folders have common
subject lines, for example:

[Arrow Marker #1] Debian CD
[Arrow Marker #1009] subscribe posting
[Arrow Marker #137] triathlon

What I would like to get rid if is the text '[Arrow Marker #XXXX] ' from
the
Subject of each email message, where XXXX is a number that might not be
unique between emails.

Is there any VB script that could do this?

Would be most grateful for any help!

Cheers,
Peter




 




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Batch Edit Contacts [email protected] Outlook - Using Contacts 0 July 26th 06 03:52 PM
changed subject line in Outlook jellin Outlook - General Queries 0 April 21st 06 02:33 PM
Edit Subject Field Meeme Outlook - Calandaring 2 April 18th 06 02:59 PM
can not use japanses at subject line in outlook Linhsuwei Outlook - Installation 0 February 13th 06 09:03 AM
some emails not opening, subject line only, not message Bill Outlook - General Queries 4 January 26th 06 02:31 PM


All times are GMT +1. The time now is 07:54 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2025 Outlook Banter.
The comments are property of their posters.