Linked checkbox and list on a user form

N2theSon

New Member
Joined
Sep 25, 2011
Messages
4
Warning: newbie post ahead! ;)

I have a form frmClientList with a single list box to provide a quick reference whether or not a client has already been entered into the system. This is populated from a dynamic named range. Another form, frmClientJournal, logs various interactions with clients. A drop-down on frmClientJournal is populated from the same named range.

I would like to add a check box next to each item in the frmClientList list box that is captioned Inactive. This would be linked to a new column in the named range. Code for the drop-down on frmClientJournal would then populate it only with active clients as determined from the Inactive column.

I'm having trouble, however, figuring out how to add checkboxes to frmClientList for each entry. Any help would be greatly appreciated. Thanks in advance!

Rex
(aka "the new guy")
 

Excel Facts

Copy a format multiple times
Select a formatted range. Double-click the Format Painter (left side of Home tab). You can paste formatting multiple times. Esc to stop
Set these two properties for the ListBox...

<font face=Courier New>frmClientList.ListBox1.MultiSelect = fmMultiSelectMulti<br>frmClientList.ListBox1.ListStyle = fmListStyleOption</FONT>

You could also set them from the ListBox's property window.
 
Upvote 0
Hi and welcome,

Maybe this.

In frmClientList

Set the the MultiSelect property to
1 - fmMultiSelectMulti

and the ListStyle property to
1 - fmListStyleOption

The checkboxes on each item are displayed

M.
 
Upvote 0
Thanks, AlphaFrog and Marcelo! That was a REALLY fast response. I posted a similar question on another really busy forum and got no responses in about a week. I'll look forward to trying this when I get back to the project.

I think I'm going to become a MrExcel addict! :LOL:
 
Upvote 0

Forum statistics

Threads
1,215,212
Messages
6,123,656
Members
449,114
Latest member
aides

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