#705·genoffice

sheets: one bad Print_Area ref discards all valid areas

Author: aniruddhaadak80Created Sep 22, 2026Updated Sep 22, 2026

Problem

printAreasFromFormula returns [] on the first unparsable part, so A1:B2 plus a stale #REF! prints the used range instead of A1:B2.

Evidence

  • apps/sheets/src/renderer/print-settings.ts:242-258

Suggested fix

Skip bad parts; fall back to [] only when zero valid areas survive.

Acceptance

  • 'A1:B2,#REF!' yields ['A1:B2']; all-bad yields [].