|
code
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
CheckedListBox Selecting ItemsItem 1 Item 2 Item 3 Item 4 Item 5 When I chose item 1 I have to perform function 1 and when I chose item 2 I have to perform function 2 and if multples items selected also have to perform those actions and so on. I need to identify the status of the checklist and to add or remove a function if the item is checked or unchecked. Collect the checked items and generate a report for only the selected items to a excel file columns. Can someone send me a basic code for that please? "Jay" <J**@discussions.microsoft.com> wrote Who gave you that assignment?> Can someone send me a basic code for that please? What have you tried? LFS If your lisbox is "box" then...
box.SelCount '-- returns the number of items selected. If you have the possibility of multiples you can walk the list like so: For i = 0 To (box.ListCount - 1) If box.Selected(i) = True Then '-- if this item is selected then... boxitem = filbox.List(i) '-- boxitem is the text of that list item. > Can someone send me a basic code for that please? The above snippets show you how to process the listboxcontent, but if you want someone else to write all of the code and then send it to Excel then you'll need to clarify how much you're willing to pay for the job. :) "Jay" <J**@discussions.microsoft.com> wrote in message "Add or remove a function"? I don't fully understand that part of your news:51F68C5D-5CE4-47C0-8D00-33446FA6AB9D@microsoft.com... > I need to identify the status of the checklist and to add or remove a > function if the item is checked or unchecked. request (assignment?).
VB Express and VB files
Is my VB6 app form open? Vista 64 and Visual Studio 6 ListBox - Limit Selection Rectangle Width Re: ADO: Deleting a table after it is loaded into Recordset Remote-Desktop "client/ server" In-Process and Out-of-Process Exporting a function from VB.net DLL Need help retrieving a udp response after sending a udp command Control Snap Problem |
|||||||||||||||||||||||