View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
[email protected] gordonjster@gmail.com is offline
external usenet poster
 
Posts: 2
Default make a list of the listobjects on a worksheet

Hi,

I am sure this must be easy, but somehow I'm not "getting it" today.

How can I generate the names of the list objects on a worksheet?

This is close, except it gives me the count:
Sub test()
Dim i
Dim LObs
For i = 1 To Worksheets.Count
LObs = LObs + Worksheets(i).ListObjects.Count
Next i
MsgBox "There are " & LObs & " list objects in the workbook."
End Sub

I'd like to know the item names of the listobjects.

Thanks