How to Move Excel Custom Header Text Closer to the Right Edge
Question details
The user needs to position custom header text further to the right edge of the printed page, but standard alignment options are limited by margin settings.

- Product
- Excel
- Device & OS
- not provided
- Scenario
- Formatting a spreadsheet for printing with specific right-aligned header text.
- Observed behavior
- The right-aligned header text stops before reaching the desired edge of the paper due to either worksheet margins or printer hardware limitations.
Ensure you have selected the correct target printer in your print settings, as Excel calculates allowable printable areas and margins based on your active printer's specific driver.
Adjust Page Margins and Header Alignment Settings
Reduce the right page margin and ensure the header is configured to align with the document margins.
By default, Excel headers follow the overall page margins. Reducing the right margin provides more space for the header text to expand toward the edge.
Go to the Page Layout tab on the ribbon, click on Margins, and select Custom Margins at the bottom of the dropdown menu.
In the Margins tab of the Page Setup dialog, decrease the value in the 'Right' and 'Header' margin boxes to move the boundary closer to the edge.
Switch to the Header/Footer tab in the same dialog box. Ensure that the 'Align with page margins' option is checked so the header follows your new right margin.
Click 'Custom Header', ensure your text is entered in the Right section box, and click OK to save your changes.

Adjust Printer Driver Settings for Borderless Printing
If the header still will not move further right, the physical non-printable area of the printer is limiting it. You must enable borderless printing in your printer properties.
Easily Customize Headers and Margins with WPS Spreadsheet
WPS Office provides an intuitive Page Layout view, allowing you to seamlessly adjust headers, footers, and margins for perfect print results without the hassle.
- 1. Open Your File: Launch WPS Spreadsheet and open your document.
- 2. Insert Header: Navigate to the Insert tab and click on Header and Footer.
- 3. Add Right-Aligned Text: Enter your desired text directly into the right-aligned section of the header box.
- 4. Adjust Margins: Go to the Page Layout tab, click Margins, and customize the right margin to push the text directly to the edge.

Frequently Asked Questions
Why does my Excel header cut off when printing?
The printer's hardware margins restrict printing too close to the paper's edge. Even if you set your Excel margins to zero, the text will be cut off unless your printer supports and has 'borderless printing' enabled in its driver properties.
How do I access the header and footer in Excel?
Go to the Insert tab and click 'Header & Footer'. This action switches your workbook to the Page Layout view, where you can directly click into the left, center, or right header sections at the top of the page.
What does 'Align with page margins' mean in Header/Footer settings?
This setting ensures your header and footer text lines up perfectly with the left and right margins of your document body. If you expand or shrink your document's right margin, the right-aligned header text will automatically follow suit.




