Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

How to find and replace Subject line in Outlook meetings?

Posted on 2010-08-26
10
Medium Priority
?
845 Views
Last Modified: 2012-05-10
I have several dozen Outlook meetings that I need to change some of the words in the Subject from DocReview Reminder: to DocReview Completed:
0
Comment
Question by:Alex Campbell
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 5
  • 5
10 Comments
 
LVL 76

Expert Comment

by:David Lee
ID: 33533166
Hi, Alex972.

There are two possible solutions.  

1.  Search for the items with the subject and when the list of matches appears open each one in turn and change the subject.
2.  Use a script that does the work for you.  

I can help with the script if you want to go that route.
0
 
LVL 1

Author Comment

by:Alex Campbell
ID: 33533247
I would want to use a script, but don't know how to write them.
0
 
LVL 76

Expert Comment

by:David Lee
ID: 33533286
No problem.  I do know how to write them.  I just wanted to make sure that a script was okay before taking the time to write one.  I'll get the script together and post it as soon as I can.
0
Nothing ever in the clear!

This technical paper will help you implement VMware’s VM encryption as well as implement Veeam encryption which together will achieve the nothing ever in the clear goal. If a bad guy steals VMs, backups or traffic they get nothing.

 
LVL 1

Author Comment

by:Alex Campbell
ID: 33533561
Thanks, that would be great.
0
 
LVL 76

Accepted Solution

by:
David Lee earned 2000 total points
ID: 33547752
Here's the code.  Follow these instructions to add it to Outlook.

1.  Start Outlook
2.  Click Tools > Macro > Visual Basic Editor
3.  If not already expanded, expand Microsoft Office Outlook Objects
4.  If not already expanded, expand Modules
5.  Select an existing module (e.g. Module1) by double-clicking on it or create a new module by right-clicking Modules and selecting Insert > Module.
6.  Copy the code from the Code Snippet box and paste it into the right-hand pane of Outlook's VB Editor window
7.  Click the diskette icon on the toolbar to save the changes
8.  Close the VB Editor

To use the code

1.  Select the folder containing the items you want to change (the code doesn't just work on calendars).
2.  Run the macro.
3.  Enter the text to search for (this is case sensitive).
4.  Enter the replacement text (this is also case sensitive).
5.  The code will run and display a dialog box at the end letting you know how many replacements it made.
Sub SearchAndReplaceSubject()
    Const MACRO_NAME = "Search and Replace Subject"
    Dim olkItem As Object, strFind As String, strReplace As String, intCount As Integer
    strFind = InputBox("Enter the text to find", MACRO_NAME)
    If strFind <> "" Then
        strReplace = InputBox("Enter the text that will replace """ & strFind & """.", MACRO_NAME)
        For Each olkItem In Application.ActiveExplorer.CurrentFolder.Items
            If InStr(1, olkItem.Subject, strFind) Then
                olkItem.Subject = Replace(olkItem.Subject, strFind, strReplace)
                olkItem.Save
                intCount = intCount + 1
            End If
        Next
    End If
    Set olkItem = Nothing
    msgbox "Find: " & strFind & vbCrLf _
        & "Replace: " & strReplace & vbCrLf _
        & "The macro found and replaced " & intCount & " instances.", vbInformation + vbOKOnly, MACRO_NAME
End Sub

Open in new window

0
 
LVL 1

Author Comment

by:Alex Campbell
ID: 33550095
Will try on Monday when I get back to work.  
0
 
LVL 1

Author Comment

by:Alex Campbell
ID: 33550096
Thanks
0
 
LVL 76

Expert Comment

by:David Lee
ID: 33550341
You're welcome.
0
 
LVL 1

Author Closing Comment

by:Alex Campbell
ID: 33560737
Very useful. Thanks
0
 
LVL 76

Expert Comment

by:David Lee
ID: 33562838
No problem.  Glad I could help.
0

Featured Post

Visualize your virtual and backup environments

Create well-organized and polished visualizations of your virtual and backup environments when planning VMware vSphere, Microsoft Hyper-V or Veeam deployments. It helps you to gain better visibility and valuable business insights.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article lists the top 5 free OST to PST Converter Tools. These tools save a lot of time for users when they want to convert OST to PST after their exchange server is no longer available or some other critical issue with exchange server or impor…
Mailbox Overload?
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …
This is my first video review of Microsoft Bookings, I will be doing a part two with a bit more information, but wanted to get this out to you folks.

610 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question