I use the following code to fill a single column, user form, listbox:
This code is located in the form module and called from the form initialization sub.
lst_Empl is the listbox name
emplRng is a public range variable. It gets set in the initialize sub to a a named range that dynamically spans some of row 2. currently C2-S2.
This code works just fine.
I want to add a second column to the listbox to help the user narrow down their selections. the second column data comes from row 3 otherwise the same as the first range.
I have created a new named range, public range variable, tmp variable and set the range variable appropriately in the parent sub. All new stuff has "Psn" in the names.
also in the properties columncount is set to 2
When I run this the second set of data just fills in beneath the first. I realized I have not directed the second set of data to the second column.
and reading through the references I cant figure out how to differentiate between the two columns when filling them.
Any help will be appreciated
Thanks
Robert
Bookmarks