kelly mort
Well-known Member
- Joined
- Apr 10, 2017
- Messages
- 2,169
- Office Version
- 2016
- Platform
- Windows
Code:
Sub TestIndex()
Dim arr, List$, i%
List = "10,12,14,16,18"
arr = Split(List, ",")
For i = 10 To 18 Step 2
Select Case i
Case LBound(arr) To UBound(arr)
MsgBox arr 'Here, I want msgbox show say 0 to 4
End Select
Next i
End Sub
So when the i reach 10, I want the msgbox show 0. In that other.
I don't know what to do to get that. Can someone help?