Is it possible to insert the control that is the listbox with a checkbox against each item into a userform that is the one that allows which controls are embedded into the toolbox, and if so, what the name of the control is?
Is it possible to insert the control that is the listbox with a checkbox against each item into a userform that is the one that allows which controls are embedded into the toolbox, and if so, what the name of the control is?
Hello timbim,
Set the ListBox.ListStyle = 1 and the ListBox.MultiSelect = 1. This will place Check Boxes beside each item. It will be up to you to determine which ones have been checked. For will have to loop through the items and check the Selected property for each item.
![]()
Please Login or Register to view this content.
Sincerely,
Leith Ross
Remember To Do the Following....
1. Use code tags. Place [CODE] before the first line of code and [/CODE] after the last line of code.2. Thank those who have helped you by clicking the Starbelow the post.
3. Please mark your post [SOLVED] if it has been answered satisfactorily.
Old Scottish Proverb...
Luathaid gu deanamh maille! (Rushing causes delays!)
Many thanks, one other query, how do you invoke a userform from a button on another form or a shape?
Hello timbim,
To call the UserForm from a Command Button or Shape, attach a macro that displays the form. Place the macro code in a VBA module.
Change the name UserForm1 to the name of the UserForm you want to display.![]()
Please Login or Register to view this content.
You could set the ListStyle of the Listbox in it's Properties to fmListStyleOption, or with code
![]()
Please Login or Register to view this content.
Last edited by Andy Pope; 06-03-2009 at 05:28 AM.
Hope that helps.
RoyUK
--------
For Excel Tips & Solutions, free examples and tutorials why not check out my web site
Free DataBaseForm example
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks