Listbox-setup and read

dcoons

Board Regular
Joined
Apr 21, 2002
Messages
56
Hi!

I need to setup and be able to 'read' a listbox. I've been able to get started w/a listbox control, but need some help understanding how to get data out. I've been playing with a bound list box, but am not sure I can do what I want that way.

I have a list of 200 markets in one column and and the percent US they represent next to the names:

Albany, NY 1.05
Detroit, MI 3.20
San Francisco, CA 2.22
etc.

These 200 markets go into the list box. I'd like to know if I can keep the marketnames left justified, and the percentUS right justified w/2 decimal places.

I'm using the fmListStyleOption which shows checkboxes--I like the way it looks, but don't actually need the checkboxes and could live without, but I do need multi-select.

What I need to "read" from the list is the number of markets selected, and the total coverage of the US (sum of pcts) when ever they change. These two items need to go into cells somewhere on the sheet.

Any help greatly appreciated!

Thanks,
Dale
 

Excel Facts

Pivot Table Drill Down
Double-click any number in a pivot table to create a new report showing all detail rows that make up that number

Forum statistics

Threads
1,213,536
Messages
6,114,202
Members
448,554
Latest member
Gleisner2

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top