I need the first row in an Excel spreadsheet to print as the header on all pages.
migrated from stackoverflow.com May 23 '11 at 20:13
|
Go to file->Page Setup and choose the sheet tab. There is an option 'rows to repeat at top'. |
|||
|
|
|
also programatically (at least in c#) it's to the effect of:
I would expect other languages to handle it similarly though, being that it's a com interface. |
|||||
|
|
The old-fashioned way to do it is to define the name "Print_Titles" to be the rows you want printed at the top. Select the rows you want as a header, click in the text-edit box to the left of the formula bar, type "Print_Titles" and hit Enter. Defining the name via the "Define Names" dialog or programatically works fine too, but I don't know where they hid the dialog box in the 2007 UI... |
|||
|
|
In MS Excel 2007, go over to the Page Layout tab, the first section of that tab is titled "Themes", the second section is titles "Page Setup" the last option there is "Print Title" click it. A dialog box will appear, simple click on the left column number 1 or your title line and the formula will auto fill. You have selected it and now "print". |
||||
|
|
|
Here is a step by step description of how to add header rows.
|
||||
|
|