I need the First Row in an Excel Spreadsheet to Print as the header on all pages.
views:
4017answers:
4
+3
A:
Go to file->Page Setup and choose the sheet tab. There is an option 'rows to repeat at top'.
Jason Irwin
2009-02-20 18:08:19
A:
also programatically (at least in c#) it's to the effect of:
[excel sheet].PageSetup.PrintTitleRows = $[firstrow]$[lastrow];
I would expect other languages to handle it similarly though, being that it's a com interface.
Fry
2009-02-20 19:07:35
A:
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...
mjfgates
2009-02-20 19:19:11
"Page Layout" > Print Titles (it's in the "Page Setup" group, 2nd from the left)
Chloraphil
2009-05-15 17:29:29