Donate. I desperately need donations to survive due to my health

Get paid by answering surveys Click here

Click here to donate

Remote/Work from Home jobs

arrays adding only selected arrays

if i have this array and i want to add only the ones i need ?

Dim strCountyState() As String = {"Hamilton, Oh", 
                                  "Butler, Oh", "Clermont, Oh", 
                                  "Warren, Oh", "Campbell, Ky", 
                                  "Boone, Ky", "Kenton, Ky"}

for example i wanna add > "Hamilton, Oh", "Butler, Oh", "Clermont, Oh", "Warren, Oh", is there any way to do this ? I tried this but it adds all of them?

 For i = 0 To strCountyState.Length - 1
     strAmount = strAmount & vbNewLine + 
                 "       " & strCountyState(i) & 
                 " : " & intCount(i)
 Next

Comments