In the following code:
Sub test(oEmailFolder As Folder, sFilter as String)
Dim oOutlookTable As Outlook.Table
Set oOutlookTable = oEmailFolder.GetTable(sFilter)
oOutlookTable.Columns.Add ("Class")
End Sub
the line with the call to Add
gives the error:
- Run-time error '-2147024809 (80070057)': The property "Class" does not support this operation.
This is the same error I got when I previously tried to add object or computed properties.
According to Unsupported Properties in a Table Object or Table Filter, there are restrictions on adding binary properties, body properties, computed properties, multi-values properties, or object properties. MailItem.Class
is a numeric constant that does not appear to be any of those five kinds of properties. Why am I getting that error?