You used a non-integer in a Dim statement when trying to declare an array. You can use Integer constants to dimension an array, but not non-integers.
Dim statement.