Public Sub x() Dim pMXDOC As IMxDocument Set pMXDOC = ThisDocument Dim pmap As IMap Set pmap = pMXDOC.FocusMap Dim pl As ILayer Set pl = pmap.Layer(0) Dim pTW2 As ITableWindow2 Set pTW2 = New TableWindow With pTW2 Set .Application = Application Set .Layer = pl .ShowAliasNamesInColumnHeadings = True .TableSelectionAction = esriSelectFeatures .Show True .ShowSelected = True End With End Sub
Signed in members can post, follow updates, and more. New here? Register a free account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.