inserting section breaks in excel

  • Thread starter Thread starter fiji222
  • Start date Start date
F

fiji222

I'm trying to figure out how to insert section breaks in my excel spreadsheet
so that I can have different headers for different pages. Everywhere I've
looked says go to insert and click section break. But I don't see this
anywhere on the toolbar. Others also suggest clicking the "link to" button
to allow to have different headers.
 
That's because Section breaks are in Word. If you want "different"
headers in a single worksheet, you will need to do a single print job
for each different header desired.
 
Excel does not have section breaks in the way that Word does. Each sheet can
have its own header/footer, so you may need to put your data in different
sheets if you want to change the header/footer mid way through a printed
document.

Hope this helps.

Pete
 
I don't think Excel provides this facility. You can not have section breaks...

Where are your different headers? You need to have a macro which will insert
the appropriate headers at the time of printing...
How will you identify a section break?

For example following macro will insert page breaks when the value in first
column changes...

Sub PageBreak()
Dim CellRange As Range
Dim TestCell As Range

Set CellRange = Selection
For Each TestCell In CellRange
ActiveSheet.Rows(TestCell.Row).PageBreak = xlPageBreakNone
If TestCell.Value <> TestCell.Offset(-1, 0).Value Then
ActiveSheet.Rows(TestCell.Row).PageBreak = xlPageBreakManual
End If
Next TestCell
End Sub

To use the macro, simply select the cells you want to use as your key for
doing the splits, minus the top cell. For instance, if the departments are in
column A, rows 2 through 37, you would select the range in A3 through A37.
Run the macro, and any old page breaks are removed and new ones added.
 
Back
Top