Invalid variable reference (Error 1223)

A function was used where a variable was expected.

Replace the reference with a valid variable or array name.