Consulting

Results 1 to 3 of 3

Thread: Solved: Page Break

  1. #1
    VBAX Regular
    Joined
    Jun 2011
    Posts
    28
    Location

    Solved: Page Break

    Having a problem setting a page break on a page of mine. The code steps through and I watch it, but the automatic page break stays and no page break is added. The automatic page break is around line 83. I need it at 93 instead.

    My latest attempt looks like this..

    [VBA]
    Sheets("RSRevDiscGIA").ResetAllPageBreaks
    Sheets("RSRevDiscGIA").HPageBreaks.Add Before:=Sheets("RSRevDiscGIA").Rows(93)
    [/VBA]
    i have also tried..

    [VBA]
    Sheets("RSRevDiscGIA").ResetAllPageBreaks
    Worksheets("RSRevDiscGIA").Rows(93).PageBreak = xlPageBreakManual
    [/VBA]

  2. #2
    VBAX Guru Kenneth Hobs's Avatar
    Joined
    Nov 2005
    Location
    Tecumseh, OK
    Posts
    4,956
    Location
    Think of it as you do in MSWord. If you add a hard page break after the soft break occurs, that is what is happening. You need to resize your rows and change fonts if you want that or set the print to fit all or change paper size.

  3. #3
    VBAX Regular
    Joined
    Jun 2011
    Posts
    28
    Location
    Quote Originally Posted by Kenneth Hobs
    Think of it as you do in MSWord. If you add a hard page break after the soft break occurs, that is what is happening. You need to resize your rows and change fonts if you want that or set the print to fit all or change paper size.
    Thanks! just had to move some information up above the soft break and there it goes.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •