Show selected VB component's name
Public Sub ShowNames() With Application.VBE.SelectedVBComponent Debug.Print .Name & ": " & .Properties("Name") End With End Sub