how to get the names that defined in excel?

  • Thread starter Thread starter Guest
  • Start date Start date
In Excel, you could turn on the macro recorder, and manually create the
list of names, as Dave described.

Then, you may be able to incorporate that code in your other project.
 
can i get the names defined in excel?

Sub ListAllNames()

Dim namName As Name

For Each namName In Application.Names
Debug.Print "Name: " & namName.Name & ", RefersTo: " & namName.RefersTo
Next namName

End Sub
 

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