I was reading about the Parent Object, which led me to looking for an example in how to use the Parent Object. Looking for an example, I randomnly selected an item, ListColumns, and used its example- this gave me an out of subscript 9 error.
[VBA]
Sub PrintParentName()
Dim wrksht As Worksheet
Dim objListCol As ListColumn
Set wrksht = ActiveWorkbook.Worksheets("Sheet1")
Set objListCol = wrksht.ListObjects(1).ListColumns(3)
Debug.Print objListCol.ListDataFormat.Parent
End Sub
[/VBA]
So I looked at the ListColumn independently and this errored....
438: object does not support this property or method.
These examples were taken directly from the help files-
I assume I am using them incorrectly....
[VBA]
Sub AddListObject()
Dim myNewColumn
Set myNewColumn = Worksheets(1).ListObject(1).ListColumns.Add
End Sub
[/VBA]