Well Jared, got what you want.
You need not add the page break, but you drag the default page break.
Copy below code as it is: Make changes to the sheet name.
Also I set the print area, down to row 68 and right to column K, you can
change the column as per your need.
Finally at the last line, the print area is expaned till row 1000. You
can delete this line, if the final print out
is single paper, or set it to what ever you like.
The DragOff command doesn't work unless you are Page Break View, so
below code sets page break view before dragging and sets it back to
normal after dragging.
Sharad
Sub PrintGimmick()
With Worksheets("Sheet1")
.PageSetup.PrintArea = "" 'clear exisitng.
.PageSetup.PrintArea = "$A$1:$K$68" 'set it right
.ResetAllPageBreaks 'this is must.
.Activate
End With
ActiveWindow.View = xlPageBreakPreview
ActiveSheet.HPageBreaks(1).DragOff _
Direction:=xlDown, RegionIndex:=1
ActiveWindow.View = xlNormalView
ActiveSheet.PageSetup.PrintArea = "$A$1:$K$1000"
End Sub
*** Sent via Developersdex
http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!