This sub will enumerate the names in a workbook. You can pass the current workbook to it e.g
[color red]colored text Call sGetWorkBookNames(ActiveWorkbook)[/color]
Private Sub sGetWorkBookNames(myworkBook As Workbook)
Dim iCount As Integer, myNames As Names
Set myNames = myworkBook.Names
For iCount = 1 To myNames.Count
Debug.Print myNames(iCount).Name
Next iCount
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.