PDA

View Full Version : Solved: Form Control vs. Control Box control



TrippyTom
01-05-2009, 06:58 PM
Hi folks,

I have a situation where a coworker made a listbox from the FORMS toolbar. I think I need to change it to a listbox from the CONROL BOX toolbar so I can control it via code, but....

My research refers to the RowSource property, but I don't see that option at all. I'm not adding it to a userform. I'm adding it to the worksheet directly.

Is there any way I can get the same functionality with a listbox from the CONTROL BOX toolbar?

Kenneth Hobs
01-05-2009, 07:10 PM
You can use the ListFillRange.

TrippyTom
01-05-2009, 07:27 PM
Thanks.

I'm not even sure his original setup was made from the FORMS toolbar because I can't right click on it and choose "View Code." I'm not sure how he made them at all now, but anyway, your answer helped.

Artik
01-05-2009, 07:29 PM
1. Add ListBox into a sheet from CONROL BOX toolbar.
2. Click on icon Properties in the same toolbar.
3. Fill in the items ListFillRange and LincedCell
4. Click on icon Design Mode.
Ready (probably). ;)

Artik

Kenneth Hobs
01-05-2009, 07:59 PM
Your screen pic shows it to be a Forms toolbar control. The code for it is set in the Sheet's container of objects. Right click the sheet's tab and View Code to see it.

lucas
01-05-2009, 08:26 PM
Right click on the listbox created from the visual basic toolbar-select properties and use Kenneth Hobs suggestion of ListFillRange