Set Word Header or Footer

Files & documents · nd-word-desktop-write-section-text · nodestly-word-desktop 1.0.0

Replaces an individual section’s primary header or footer with a line of text in a new DOCX.

Inputs and outputs

  • document — Word document (text (filesystem.file)) Required connector.
  • sectionNumber — Section number (number) Connector or setting.
  • area — Area (text) Connector or setting.
  • text — Text (text) Connector or setting.
  • destinationFolder — Destination folder (text (filesystem.folder)) Required connector.
  • name — Output filename (text) Connector or setting.
  • fire — Optional start signal (fire).
  • file — File (text (filesystem.file)).
  • fire — Continuation after successful completion (fire).

Settings

  • sectionNumber — Section number (number). Default 1.
  • area — Area (select). Default header. Options header, footer.
  • text — Text (text). Default empty.
  • name — Output filename (text). Default empty.

A connected input takes precedence over the saved setting, including empty text, zero and false. An invalid connected value stops the workflow.

Choose an existing section starting at 1, the primary header or footer, and one line of up to 8,192 characters. Empty text clears the selected area. The block preserves inherited text in following sections. Word’s first-page and even-page variants stay separate. If a section does not exist, check the count with Inspect Word Page Layout.

Requirements and common errors

Use an active Windows desktop, installed Microsoft Word Desktop and Windows PowerShell 5.1. Reconnect an existing local DOCX under 32 MiB with no password, external links, macros, active objects or unsupported dynamic fields. Open Word once to clear activation or first-run prompts if it fails to start.

Choose one filename ending in .docx in a writable local folder on an NTFS or equivalent volume. Choose a fresh name if the destination already exists. Editing requires an unrestricted copy with resolved tracked changes.

Failure stops this block and returns no file resource or continuation signal.