Lists and VBA

C

Cuperman007

Hi All,

Is it possible to access my worksheet Lists in VBA? ("proper" Excel
lists)

Thanks
Mark
 
C

Chip Pearson

Try

Sub AAA()
Dim RR As Range
Dim LL As Excel.ListObject
Dim WS As Worksheet
Dim R As Range

Set WS = ActiveSheet
Set LL = WS.ListObjects("List1")

Set RR = LL.DataBodyRange
For Each R In RR
Debug.Print R.Address(False, False), R.Text
Next R
End Sub


--
Cordially,
Chip Pearson
Microsoft MVP - Excel, 10 Years
Pearson Software Consulting
www.cpearson.com
(email on the web site)
 
Top