oliv-
Senior Member
- Outlook version
- Outlook 2010 32 bit
- Email Account
- Exchange Server
Hi,
is it possbile to add "Body" to Table from GetTable ?
I have an error 5 Invalid procedure call or argument
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