Lists and VBA

  • Thread starter Thread starter Cuperman007
  • Start date Start date
C

Cuperman007

Hi All,

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

Thanks
Mark
 
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)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top