Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Public Sub Confidential()
- Dim Item As Outlook.MailItem
- Dim oInspector As Inspector
- Dim strSubject As String
- Set oInspector = Application.ActiveInspector
- If oInspector Is Nothing Then
- Set Item = Application.ActiveExplorer.Selection.Item(1)
- Else
- Set Item = oInspector.CurrentItem
- End If
- strSubject = Item.Subject
- ' Remove previous Confidential and Legally Privileged
- strSubject = Replace(strSubject, "Confidential and Legally Privileged ", "")
- ' Prefix subject with Confidential and Legally Privileged
- strSubject = "Confidential and Legally Privileged " & strSubject
- ' Set the message subject
- Item.Subject = strSubject
- Set Item = Nothing
- Set oInspector = Nothing
- End Sub
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement