ListObject.SourceType property (Excel)
Returns an XlListObjectSourceType value that represents the current source of the list.
Syntax
expression.SourceType
expression A variable that represents a ListObject object.
Example
The following sample code returns an XlListObjectSourceType constant indicating the source of the default list on Sheet1 of the active workbook.
Sub Test ()
Dim wrksht As Worksheet
Dim oListObj As ListObject
Set wrksht = ActiveWorkbook.Worksheets("Sheet1")
Set oListObj = wrksht.ListObjects(1)
Debug.Print oListObj.SourceType
End Sub
Support and feedback
Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.