![]() |
If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. |
|
|
Thread Tools | Search this Thread | Display Modes |
#1
|
|||
|
|||
![]()
I have simple code that moves messages into another PST file. But each
message moved gets it's received date changed to the current date time which is useless. Any workarounds? Thanks, James. Dim objOutlookApplication As Application Dim objNameSpace As NameSpace Dim objInbox As MAPIFolder Dim objMessage As MailItem Set objOutlookApplication = CreateObject("Outlook.Application") Set objNameSpace = objOutlookApplication.GetNamespace("MAPI") Set objInbox = objNameSpace.GetDefaultFolder(olFolderInbox) For Each objMessage In objInbox.Items If objMessage.SenderEmailAddress = " Then objMessage.Move objNameSpace.Folders("Example Folder").Folders("Subfolder") End If Next |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
How do I get my correct date sent/received headers back? | malarkey | Outlook Express | 8 | August 28th 06 01:18 PM |
Help moving message with VBA | Murphybp2 | Outlook and VBA | 1 | August 15th 06 07:01 AM |
Moving data from Form Item to olMailItem | djohnson | Outlook - Using Forms | 5 | August 10th 06 05:41 AM |
Group By Flag Status and then Received date | [email protected] | Outlook - General Queries | 0 | June 10th 06 12:53 AM |
Exporting Date received and Date Sent to Access | Sugarthebeet | Outlook - General Queries | 1 | January 19th 06 08:06 PM |