modern-xlsx API Reference - v1.3.0
    Preparing search index...

    Function resolveRange

    • Resolve a range reference to a 2D array of values (rows x cols).

      The range is normalised so that start is always the top-left corner regardless of the order the user specified. When the context supplies EvalContext.getBounds, the matrix is clamped to the populated bounds (top-left kept), so it may be smaller than the declared range or empty. Column letters may be either case. An endpoint outside the grid A1:XFD1048576, or a 3-D prefix, resolves to [['#REF!']] without calling ctx.getCell.

      Parameters

      Returns CellValue[][]

      INVALID_ARGUMENT when the context has no bounds for the sheet and the range spans more than 1,048,576 cells.