Add Text Header Footer to Excel in Power Automate
PDF4me Add Text Header Footer to Excel is a Power Automate action that stamps custom text into the six header and footer zones of a workbook, Left, Center, and Right on both the header and the footer. Use it to brand reports with a title, mark a footer confidential, or stamp a generation date without opening Excel manually.
What this action does
PDF4me Add Text Header Footer to Excel writes text into any of six independent zones, Header Left, Header Center, Header Right, Footer Left, Footer Center, and Footer Right, on an existing workbook. Leave a zone blank to skip it. Advanced parameters expose per-zone styling such as text color, which only applies once the matching zone has text.
How Do I Authenticate My Power Automate Flow?
Every PDF4me action in Power Automate requires a valid connection. Create or select one that holds your PDF4me API key so the flow can authenticate Excel header/footer requests securely.
Important Facts You Should Not Miss

Map File Content and File Name, fill any header/footer text zones you need, then expand Advanced parameters for per-zone styling.
Parameters
Required: File Content and File Name must always be provided. All six header/footer text zones are optional, fill only the ones you need. Advanced style parameters are conditional, they take effect only when their matching text zone has a value.
| Parameter | Required | What it does | Example |
|---|---|---|---|
| File Content | Required | Base64 content of the source Excel workbook, mapped from SharePoint, OneDrive, or another prior action. | [File Content from Get file content] |
| File Name | Required | Excel filename including extension (.xlsx or .xls), used for processing and output identification. | add_header_sample_file.xlsx |
| Header Left Text | Optional | Text placed in the left section of the header. Leave blank to skip this zone. | Pdf4me Test |
| Header Center Text | Optional | Text placed in the center section of the header. | Confidential Report |
| Header Right Text | Optional | Text placed in the right section of the header. | Page 1 |
| Footer Left Text | Optional | Text placed in the left section of the footer. | Internal Use Only |
| Footer Center Text | Optional | Text placed in the center section of the footer. | Generated 2026-07-06 |
| Footer Right Text | Optional | Text placed in the right section of the footer. | Confidential |
| Header Left - Color | Conditional | Font color for the Header Left Text zone, hex or color name. Only takes effect if Header Left Text has a value. One of 15 advanced parameters in the connector panel, expand Advanced parameters in the designer for the remaining per-zone style controls. | Black |
Output Fields
| Field | Type | What it contains |
|---|---|---|
document | Base64 | The Excel workbook with the configured header/footer text applied. |
Success | Boolean | true if the action completed, false if it failed. |
ErrorMessage | String | Error description, null when Success is true. |
Errors | Array | Detailed error objects, empty when Success is true. |
What Do the Common Error Messages Mean?
| Error Message | Cause | Solution |
|---|---|---|
| Request is empty | The request object is null. | Provide a valid request object. |
| Document is empty | File Content is null or empty. | Map a valid Excel document into File Content. |
| Invalid file format | The mapped file is not a valid Excel document. | Confirm the source file is a genuine .xlsx or .xls workbook. |
| Invalid color format | A color parameter has an invalid hex code or color name. | Use a valid hex format such as #FF0000 or a standard color name. |
How Do I Set Up Add Text Header Footer in Power Automate?
- Add PDF4me → Excel - Add Text Header Footer to your Power Automate flow.
- Map File Content and File Name from a previous action (SharePoint, OneDrive, or Get file content).
- Fill any of Header Left Text, Header Center Text, or Header Right Text for the header zones you need.
- Fill any of Footer Left Text, Footer Center Text, or Footer Right Text for the footer zones you need.
- Expand Advanced parameters to style a filled zone, for example Header Left - Color. Run the flow, the branded workbook returns as document.
Typical Setups
Workflow ExamplesCommon Power Automate flow patterns using Add Text Header Footer.
- A scheduled trigger runs on the monthly report generation date.
- Get file content retrieves the finished report workbook from SharePoint.
- Add Text Header Footer sets Header Center Text to the report title and Footer Left Text to a generated-on note.
- The branded workbook is uploaded back to the reports document library.
- An instant flow runs when a sensitive Excel file is uploaded to a restricted folder.
- Get file content retrieves the workbook from that folder.
- Add Text Header Footer sets Footer Center Text to a confidentiality notice.
- The marked workbook is saved back to the same restricted library.
- A flow triggers when a deliverable is marked Final in a project management connector.
- Get file content retrieves the final Excel deliverable.
- Add Text Header Footer sets Header Left Text to the company name and Footer Right Text to a formatDateTime expression.
- The branded file is emailed to the client stakeholder.
Practical Tips
Cheat Sheet
| Field | Value |
|---|---|
| Action | Excel - Add Text Header Footer |
| Required fields | File Content, File Name |
| Header zones | Header Left Text, Header Center Text, Header Right Text (each optional) |
| Footer zones | Footer Left Text, Footer Center Text, Footer Right Text (each optional) |
| Advanced parameters | 15 total, confirmed example Header Left - Color (conditional on matching text zone) |
| Output | document (Base64 workbook) + Success + ErrorMessage + Errors |
Common Questions
Industry Use Cases & Applications
- Finance & Accounting
- Sales & Marketing
- Human Resources
- Operations & Manufacturing
- Financial Statements: Add headers with company name and reporting period
- Budget Reports: Insert confidentiality footers on budget documents
- Audit Documents: Apply audit date and version information in headers
- Expense Reports: Add submission date and approval status in footers
- Sales Reports: Add report title headers and generation date footers
- Pricing Sheets: Insert confidential pricing headers on rate cards
- Customer Data: Apply data protection notices in footers
- Marketing Analytics: Add branding headers to analytics reports
- Payroll Reports: Insert confidentiality headers on salary documents
- Employee Records: Add date and version footers to personnel files
- Benefits Enrollment: Apply open enrollment period headers
- Performance Reviews: Insert review period and confidentiality notices
- Inventory Reports: Add warehouse location and date headers
- Production Reports: Insert shift information and date footers
- Quality Reports: Apply quality standard references in headers
- Supply Chain Data: Add supplier confidentiality notices in footers