Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Need to have a page break before every instance of *dept* in a column... this
doesn't work. Do multiple columns mess it up? Cells.PageBreak = xlPageBreakNone col = 1 LastRw = 3300 For x = 1 To LastRw If Cells(x, col).Value = "*dept*" Then 'or like "*dept*" ActiveWindow.SelectedSheets.HPageBreaks.Add Befo=Rows(x) End If Next ActiveWindow.View = xlPageBreakPreview 'ActiveSheet.ResetAllPageBreaks End Sub |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Excel 2007 Page Break Adjustments causes a page break each cell | Excel Worksheet Functions | |||
Page break code | Excel Programming | |||
VBA Code-listing page break | Excel Programming | |||
HPageBreak count problem unless in page break view | Excel Programming | |||
Code to insert a Page Break | Excel Programming |