Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I am trying to populate a list box with all the named ranges in a
sheet. The following code gives me only the refers to portion of the name not the name itself. What am I doing wrong ??? Private Sub UserForm_Initialize() For Each nName In Names Me.ListBox1.AddItem (nName) Next nName End Sub Thanks Chris |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi Chris,
Try: '============ Private Sub UserForm_Initialize() Dim nName As Name For Each nName In Names Me.ListBox1.AddItem (nName.Name) Next nName End Sub '<<============ --- Regards, Norman "Chris Salcedo" wrote in message oups.com... I am trying to populate a list box with all the named ranges in a sheet. The following code gives me only the refers to portion of the name not the name itself. What am I doing wrong ??? Private Sub UserForm_Initialize() For Each nName In Names Me.ListBox1.AddItem (nName) Next nName End Sub Thanks Chris |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Well that did it. It was so simple the that I just couldnt see it...
Its time for bed...... Thanks.. Chris zzZZZZZz... |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Validation list from Named Ranges | Excel Worksheet Functions | |||
list of named ranges | Excel Discussion (Misc queries) | |||
Named ranges dissapear from list | Excel Discussion (Misc queries) | |||
Create list of Named Ranges | Excel Worksheet Functions | |||
Viewing List of Named Ranges | Excel Discussion (Misc queries) |