Hi there everyone! I am working on a program where I a have a list of items.
The list is called YourList, and some of the items have specific letters in brackets like this (*).
I was wondering if I could modiify this code to search for just these. Because I might have a list of items such as
(*)item1
item2
item3
item4
item5
etc.
And if an item is found with that (*), then a msgbox would pop up with the name of just the item without the (*)
I would like to use this code, but am up for other options.
Thank you for your help!!!
The list is called YourList, and some of the items have specific letters in brackets like this (*).
I was wondering if I could modiify this code to search for just these. Because I might have a list of items such as
(*)item1
item2
item3
item4
item5
etc.
And if an item is found with that (*), then a msgbox would pop up with the name of just the item without the (*)
I would like to use this code, but am up for other options.
VB Code:
Dim iczk As Integer Dim srch_stringzk As String srch_stringzk = "" 'or whatever you want to search for ??This is where I am stuck, where do I code I just want to search for items with the (*) at the beginning? For iczk = 0 To YourList.ListCount - 1 If YourList.List(iczk) = srch_stringzk Then 'msgbox = "Found" End If Next iczk