One way
Sub ListCodeNames()
Dim sh As Object
Dim oVBMod As Object
With ActiveWorkbook.VBProject
For Each oVBMod In .VBComponents
Select Case oVBMod.Type
Case 100:
Debug.Print "Name is " &
CStr(.VBComponents(oVBMod.Properties("Codename")). _
Properties("Name")) & ", CodeName is " &
CStr(.VBComponents(oVBMod.Properties("Codename")). _
Properties("CodeName"))
End Select
Next oVBMod
End With
End Sub
--
HTH
Bob Phillips
(replace somewhere in email address with gmail if mailing direct)
"Barb Reinhardt" <(E-Mail Removed)> wrote in message
news:1DD60E5D-0520-49C0-960B-(E-Mail Removed)...
> I have changed the code name for many of the sheets in my workbook, but
want
> to get a listing of them. How are the code names and the sheet names
coded
> so that I can display them?
>
> Thanks
|