views:

4017

answers:

4

I need the First Row in an Excel Spreadsheet to Print as the header on all pages.

+3  A: 

Go to file->Page Setup and choose the sheet tab. There is an option 'rows to repeat at top'.

Jason Irwin
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
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
"Page Layout" > Print Titles (it's in the "Page Setup" group, 2nd from the left)
Chloraphil
A: 

thanks every body

vahid