The following example uses the Name property to return the name of the specified member of the VBComponents collection in a particular project.
Debug.Print Application.VBE.VBProjects(1).VBComponents(1).Name