I got this code snippet from the above site.
Dim objOL As Application
Dim objNS As Outlook.NameSpace
Dim myItems As Items
Dim x As Int16
objOL = New Application()
objNS = objOL.GetNamespace("MAPI")
Dim olfolder As MAPIFolder
olfolder = objOL.GetNamespace("MAPI").GetDefaultFolder(OlDefaultFolders.olFolderInbox)
myItems = olfolder.Items
For x = myItems.Count To 1 Step -1
If myItems.Item(x).To.ToString.Contains("Username") Then
However, what I want to do is when it meets the condition of the to field containts what ever the user's name is, I want it to change the subject of the item (in outlook 2010/2007) to
"In progress " + what ever the original subject name was.
So the part I don't know how to do is the change subject name to something different. Can anyone help me in this please.