I use arrays in my buttons, but I think I messed up the codes.
Private Sub cmdLetter_Click(Index As Integer) letterClick(0) = "a" letterClick(1) = "b" letterClick(2) = "c" checkLetters playSound cmdLetter(Index).Enabled = False End Sub
And here is the problem. It says that the Subscript is out of range.
For Y = LBound(ans) To UBound(ans) If UCase(ans(Y, 1)) = UCase(letterClick(Index)) Then ans(Y, 2) = ans(Y, 1) loadHint
UCase(letterClick(3))but I it doesn't work also.
If it helps, this is what it actually looks like.