Solved

Is it possible to do the Search and Replace of Subjects for ONLY selected calendar entries?

Posted on 2010-08-30
5
301 Views
Last Modified: 2012-05-10
I have several dozen entries in Outlook calendar with the terms DocReview Reminder.
When a DocReview Reminder is completed, I would want to change the word Reminder to Reviewed.
This would be only for certain ones that I will select.
0
Comment
Question by:Alex972
  • 2
  • 2
5 Comments
 
LVL 53

Expert Comment

by:Will Szymkowski
ID: 33561396
Not sure if this is possible on Calendar items but it is for folders, emails, contacts etc. Take a look here...
http://office.microsoft.com/en-us/outlook-help/find-and-replace-text-within-an-e-mail-message-or-item-HA010208734.aspx#BM5

Also try downloading and installing this Outlook add-in which might give you the tools to do what you are looking for. You can use a free trial for 30 days...
http://www.office-addins.com/-outlook-addins/find-replace-outlook.html

Hope this helps~!
0
 
LVL 76

Expert Comment

by:David Lee
ID: 33563605
Hi, Alex972.

Are you saying that you want a macro that changes the subject for selected items?
0
 

Author Comment

by:Alex972
ID: 33568714
Yes
0
 
LVL 76

Accepted Solution

by:
David Lee earned 500 total points
ID: 33569272
That's doable with a slight modification to the code from your last question.  I've made the necessary change so it will only search and replace the items you have selected.
Sub SearchAndReplaceSubjectInSelectedItems()
    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.Selection
            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
 

Author Closing Comment

by:Alex972
ID: 33569835
GREAT!!
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Resolve Outlook connectivity issues after moving mailbox to new Exchange 2016 server
Following basic email etiquette rules will help you write a professional email and achieve a good, lasting impression with your contacts.
This Experts Exchange video Micro Tutorial shows how to tell Microsoft Office that a word is NOT spelled correctly. Microsoft Office has a built-in, main dictionary that is shared by Office apps, including Excel, Outlook, PowerPoint, and Word. When …
To add imagery to an HTML email signature, you have two options available to you. You can either add a logo/image by embedding it directly into the signature or hosting it externally and linking to it. The vast majority of email clients display l…

895 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now