I'm very new to VB (like, several hours old!), and I have created a small code to run on an email that will add the email's original date stamp to the beginning of the subject line. The problem I am having (and I'm sure it is a simple code correction) is that it only works on one email at a time (the one selected). I need to be able to select a bunch of emails and have it run on all of them. Here is my code:
Sub Test()
Dim MItem As MailItem
On Error GoTo ExitPoint
For Each MItem In ActiveExplorer.Selection
MItem.Subject = MItem.CreationTime & " " & MItem.Subject
Next
ExitPoint:
End Sub
Anyone who can help I would be much appreciative!
Thanks
Sub Test()
Dim MItem As MailItem
On Error GoTo ExitPoint
For Each MItem In ActiveExplorer.Selection
MItem.Subject = MItem.CreationTime & " " & MItem.Subject
Next
ExitPoint:
End Sub
Anyone who can help I would be much appreciative!
Thanks