Sep 27, 2006 #1 Rob7412 Technical User Joined Jan 26, 2006 Messages 31 Location US Probably Simple but I can't seem to get it working. I need to have a button on a form that sets all items in my listview checkboxes to checked and another to uncheck. Any help would be appreciated. THX.
Probably Simple but I can't seem to get it working. I need to have a button on a form that sets all items in my listview checkboxes to checked and another to uncheck. Any help would be appreciated. THX.
Sep 27, 2006 1 #2 HarleyQuinn Programmer Joined Jan 15, 2003 Messages 4,769 Location GB Hi, Loop through all of the items in the Listview and either set the checked to True or False depending on if you want them checked or not, e.g. Code: For i = 1 To ListView2.ListItems.Count ListView2.ListItems(i).Checked = True Next i Hope this helps HarleyQuinn --------------------------------- Get the most out of Tek-Tips, read FAQ222-2244 before posting. Upvote 0 Downvote
Hi, Loop through all of the items in the Listview and either set the checked to True or False depending on if you want them checked or not, e.g. Code: For i = 1 To ListView2.ListItems.Count ListView2.ListItems(i).Checked = True Next i Hope this helps HarleyQuinn --------------------------------- Get the most out of Tek-Tips, read FAQ222-2244 before posting.
Sep 27, 2006 Thread starter #3 Rob7412 Technical User Joined Jan 26, 2006 Messages 31 Location US Thanks it worked like a champ Upvote 0 Downvote
Sep 27, 2006 #4 HarleyQuinn Programmer Joined Jan 15, 2003 Messages 4,769 Location GB Glad I could help, thanks for the star HarleyQuinn --------------------------------- Get the most out of Tek-Tips, read FAQ222-2244 before posting. Upvote 0 Downvote
Glad I could help, thanks for the star HarleyQuinn --------------------------------- Get the most out of Tek-Tips, read FAQ222-2244 before posting.