Ever wanted to use those tickboxes that are used by list boxes, well this code will let you do that
Ever wanted to use those tickboxes that are used by list boxes, well this code will let you do that, this code gets the items that you have
Rate Ever wanted to use those tickboxes that are used by list boxes, well this code will let you do that
(1(1 Vote))
'please obay these instructions:
'
' 1. Remember to keep the following code in a command button
' 2. Replace "list1" and "list2" with the appropriate controls
' 3. Make sure that the first list is ither set with "multiselect"
' or the "checkbox" style.
Private Sub Command1_Click
Dim i As Integer
For i = 0 To List1.ListCount - 1
If List1.Selected(i) = True Then
List2.AddItem List1.List(i)
End If
Next i
End Sub
Ever wanted to use those tickboxes that are used by list boxes, well this code will let you do that Comments
No comments yet — be the first to post one!
Post a Comment