I would use Exchange for this, but my client won't buy it...
So, MSKB article Q183209 states:
"If you are using an HTML Mail message, you can use the Outlook object model to access the HTML Document Object Model and use that object model to manipulate the embedded HTML."
Sounds great. Well...first thing I found I had to do was create an object reference (they left that little tidbit out), but now I still haven't figured out the how. All I want to do is set the value of a variable using the contents of a div tag of an incoming mail message with a specific Subject. Nada...I've tried 27 different permutations to try and figure this out. Oh yeah, by the way, I tried the example code attached to the HTMLEditor help and, you guessed it, NADA. I'm going crazy. Here's my latest (of many) effort...
Dim sSubject As String
Dim sBody As String
Set myInspector = Item.GetInspector
Set myIExplorer = myInspector.HTMLEditor
Set myContent = myIExplorer.All.Item
sSubject = myContent.HTMLDivElement.ID("Subject").outerHTML
sBody = myContent.HTMLDivElement.ID("body").outerHTML
Set oldItem = Item
Set myOlApp = CreateObject("Outlook.Application")
Set myNameSpace = myOlApp.GetNamespace("MAPI")
Set myOlTaskFolder = myNameSpace.GetDefaultFolder(olFolderTasks)
Set myItems = myOlTaskFolder.Items
Set newDMVTaskItem = myItems.Add
newDMVTaskItem.Subject = sSubject
newDMVTaskItem.Body = sBody
newDMVTaskItem.UnRead = True
oldItem.UnRead = False
Any help is greatly appreciated.