You have entered a function that cannot be used in this expression. The functions DoEvents, LBound, UBound, Spc, and Tab aren't available in expressions.