Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #2  
Old 04-19-2017, 12:54 AM
gmayor's Avatar
gmayor gmayor is offline Subject Line Editing Problem. Windows 10 Subject Line Editing Problem. Office 2016
Expert
 
Join Date: Aug 2014
Posts: 4,144
gmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud of
Default

A simple macro will change the subject of a selected message e.g

Code:
Sub ProcessSubject()
Dim olMsg As MailItem
Const strSubject As String = "ABC123 - "
    On Error Resume Next
    Set olMsg = ActiveExplorer.Selection.Item(1)
        olMsg.Subject = strSubject & olMsg.Subject
        olMsg.Save
lbl_Exit:
    Exit Sub
End Sub
__________________
Graham Mayor - MS MVP (Word) (2002-2019)
Visit my web site for more programming tips and ready made processes www.gmayor.com
Reply With Quote
 

Tags
edit, subject

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Text from E-mail body in Subject Line Shazz Outlook 0 02-05-2013 03:47 AM
Auto Subject Line hollwall Outlook 0 04-19-2012 08:49 AM
Subject Line Editing Problem. hyperlinks in subject line daddyb Outlook 1 01-05-2012 07:40 AM
Subject Line Editing Problem. Outlook 2010 Web Access Subject line length Emerogork Outlook 4 06-08-2011 05:50 PM
Subject Line Editing Problem. getting additional characters in email subject line namishtiwari Outlook 1 04-21-2009 11:21 PM

Other Forums: Access Forums

All times are GMT -7. The time now is 09:34 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft