Free for PREMIUM members
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)
intCount = intCount + 1
Set olkItem = Nothing
msgbox "Find: " & strFind & vbCrLf _
& "Replace: " & strReplace & vbCrLf _
& "The macro found and replaced " & intCount & " instances.", vbInformation + vbOKOnly, MACRO_NAME
Open in new window
Easily upload multiple users’ photos to Office 365. Manage them with an intuitive GUI and use handy built-in cropping and resizing options. Link photos with users based on Azure AD attributes. Free tool!
Please enter a first name
Please enter a last name
Must be at least 4 characters long.
Join and Comment
From novice to tech pro — start learning today.
Premium members can enroll in this course at no extra cost.
Premium members get this course for $159.20.
Premium members get this course for $18.75.
Premium members get this course for $62.50.
Premium members get this course for $95.20.
Premium members get this course for $122.40.
Premium members get this course for $25.00.