ConstThe leading = is not part of the expression and does not count against this.
Longer text is refused at compile rather than parsed: the formula carries a parse error and IFormula.getTokens answers a single unparsed token. Nothing downstream — the tokenizer, the AST, a formula input — is ever handed an expression of unbounded size.
The most characters a formula expression can hold, matching Excel's limit on formula contents.