Outlook 2010 GetTable Add body

oliv-

Senior Member
Outlook version
Outlook 2010 32 bit
Email Account
Exchange Server
Hi,
is it possbile to add "Body" to Table from GetTable ?

Code:
Sub testGetable()

    Dim oFolder As Outlook.Folder
    Dim criteria
    Dim oTable As Table
    Dim i, oRow, r, arr
    Set oFolder = Application.Session.PickFolder
    criteria = "[MessageClass]='IPM.Note' or [MessageClass]='IPM.Post'"
    Set oTable = oFolder.GetTable(criteria, olUserItems)
    With oTable.Columns
        .add ("Body")
    End With
    MsgBox oTable.GetRowCount
    Set oRow = oTable.GetNextRow()
    MsgBox oRow("Subject")
    MsgBox oRow("Body")
End Sub
I have an error 5 Invalid procedure call or argument
 

Michael Bauer

Senior Member
Outlook version
Outlook 2010 32 bit
Email Account
Exchange Server
No. The boolean property "urn:schemas:httpmail:hasattachment" reveals only whether or not it has attachments. For details you need to open the message.
 

oliv-

Senior Member
Outlook version
Outlook 2010 32 bit
Email Account
Exchange Server
No. The boolean property "urn:schemas:httpmail:hasattachment" reveals only whether or not it has attachments. For details you need to open the message.
That's what I thought. Thank you
 
Top