Loop control variable cannot be a property or a late-bound indexed array

The variable used to iterate through a For loop must be of a numeric data type.

Error ID: BC30039

To correct this error

  • Change the declaration of the loop control variable to specify Integer, Short, Long, Byte, Single, Double, or Decimal.

See Also

Reference

For...Next Statement (Visual Basic)