86452

In Outlook VBA, how can I change the subject so it changes the subject in the Explorer Pane?

When I receive an email, I'm manipulating the subject line so it is more readable and "conversations" generated by a certain auto-emailer actually contain all of the thread.

I'm able to change the subject in the email view pane, but the subject remains the same in the explorer pane. How can I force the subject to change in the Explorer Pane? Do I have to copy the email and delete the old one? If so, I know that the email date will change. How can I change the email date back to the original date prior to the move? I'm using Outlook 2007.

Answer1:

A bit late, but 2 things: Conversation Topic...

<ol> <li><strong>can't</strong> be changed in Outlook's Object Model (VBA/VSTO)</li> <li><strong>can</strong> be changed by using Outlook Redemption.</li> </ol>

This forum thread has some sample code and instructions at the bottom.

Answer2:

Presumably you've already written the code which gets you a reference to a MailItem object.

You can set the MailItem's Subject property to what ever you like and then call it's Save() method. This should achieve what you desire regarding the mail's subject.

However, doing this also updates the mail's ReceivedTime property. This is a read only property so you can't set it back to the previous timestamp. Unfortunately, there may be no way to do so.

Recommend

  • Using Reactive Extension for certain KeyPress sequences?
  • python, confused in decorate and closure
  • DropShadowPanel adapt to button template style
  • How do I access SQL from XPages
  • Why isn't RAD (Eclipse) able to properly detect WAS server startup?
  • How delete folders created by yeoman in Windows?
  • Typescript sourcemaps not loaded in chrome
  • Converting RVML to SVG using XSLT in C#
  • How do I pass worksheet and ranges as variables?
  • Circle movement upon rectangle Collision
  • How to remove left and right margins from all wrapped rows in flexbox (without nth-child or js)
  • Unable to run SDL program in Eclipse but able to do so in Windows Explorer
  • R h2o.glm - issue with max_active_predictors
  • Leaflet z-index
  • IE6 changes DOCTYPE to a bad one
  • Most efficient way to move table rows from one table to another
  • Doctrine/Symfony entity generator and generating entity from one table
  • Who propagate bugfixes across branches (corporate development)?
  • Default parameter as generic type
  • xcode don't localize specific strings
  • std::remove_copy_if_ valgrind bytes in block are possibly lost in loss record
  • Problem while Building a Setup Project for a windows Service?
  • Functions in global context
  • Allowing both email and username for authentication
  • Get one-time binding to work for ng-if
  • ilmerge with a PFX file
  • Adding a button at the bottom of a table view
  • Illegal mix of collations for operation for date/time comparison
  • Getting last autonumber in access
  • Sony Xperia Z Tablet not found by adb
  • Release, debug version and Authorization Google?
  • How do you troubleshoot character encoding problems?
  • Delete MySQLi record without showing the id in the URL
  • GridView Sorting works once only
  • XCode can't find symbols for a specific iOS library/framework project
  • PHP: When would you need the self:: keyword?
  • using conditional logic : check if record exists; if it does, update it, if not, create it
  • Hits per day in Google Big Query
  • Django query for large number of relationships
  • Running Map reduces the dimensions of the matrices