Hello there. I have a list of items for a student game. I borrowed some older code from a bingo game that would let you take away numbers from the bingo list of numbers to be called.
Now I am working on a literacy game, and the game a list of words that can be taken away from depending on the options they choose.
I am trying to modify this code to remove certain words from the list.
Dim i As Long
For i = RosterList.ListCount - 1 To 0 Step -1
If Mid$(RosterList.List(i), 1, 1) = "N" Then
RosterList.RemoveItem i
End If
Next
Now before, with bingo if the number has a N in it, it would remove all the numbers with N, but now for this new game I would like it to remove any items that have the words "Click Here" or at least "Click"
I was wondering if this code could do that, because it did it brilliantly with the bingo game, but what would I have to modify, is there something about the 1,1 that would indicate the number of characters to look for? Thanks!
Now I am working on a literacy game, and the game a list of words that can be taken away from depending on the options they choose.
I am trying to modify this code to remove certain words from the list.
Dim i As Long
For i = RosterList.ListCount - 1 To 0 Step -1
If Mid$(RosterList.List(i), 1, 1) = "N" Then
RosterList.RemoveItem i
End If
Next
Now before, with bingo if the number has a N in it, it would remove all the numbers with N, but now for this new game I would like it to remove any items that have the words "Click Here" or at least "Click"
I was wondering if this code could do that, because it did it brilliantly with the bingo game, but what would I have to modify, is there something about the 1,1 that would indicate the number of characters to look for? Thanks!