Jetformat

Set an Excel worksheet print area

Use jetformat excel print-area to set an Excel worksheet print area.

By Jetformat

Choose the cell range intended for printing. This changes print settings rather than deleting content outside the range.

Steps

  1. Start with a local XLSX. Replace the sample paths and identifiers with your own.
  2. Run the command below. Save to a new output path so the source remains available for comparison.
  3. Check the result as described below before using it in another job.
jetformat excel print-area finance.xlsx --sheet Summary --range A1:B2 -o finance-updated.xlsx

Options for this task

Option Meaning
--output Output XLSX path (required)
--range Range, for example A1:B2
--sheet Worksheet name (required)

Check the result

Convert the workbook and inspect the resulting PDF; do not assume a print-area setting alone proves the output contains the intended cells.

Notes and limits

Writing an Office document uses one credit per command. See the billing guide for the current rules.

The examples keep the original file. Add --force only when you intend to overwrite an existing output. Run jetformat excel print-area --help to compare options with your installed version.

See the excel command reference for the surrounding workflow.

Last updated