+ Reply to Thread
Results 1 to 5 of 5

Set page breaks at specific rows?

  1. #1
    Forum Contributor
    Join Date
    11-17-2009
    Location
    PA USA
    MS-Off Ver
    Excel 2000
    Posts
    184

    Set page breaks at specific rows?

    I searched and was not successful solving this simple issue.

    I want to set the horizontal page breaks at specific rows. I have rows hidden in the sheet, and would like to adjust the print area and the page breaks as the number of rows change.

    For example:

    break 1 = above row 50
    break 2 = above row 160

    Thank you for helping me.

    Excel 2000

    I have this code but it returns an error.
    Please Login or Register  to view this content.
    Last edited by proepert; 05-05-2010 at 11:14 PM.

  2. #2
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,259

    Re: Set page breaks at specific rows?

    Hello proepert,

    Is the worksheet protected?
    Sincerely,
    Leith Ross

    Remember To Do the Following....

    1. Use code tags. Place [CODE] before the first line of code and [/CODE] after the last line of code.
    2. Thank those who have helped you by clicking the Star below the post.
    3. Please mark your post [SOLVED] if it has been answered satisfactorily.


    Old Scottish Proverb...
    Luathaid gu deanamh maille! (Rushing causes delays!)

  3. #3
    Forum Contributor
    Join Date
    11-17-2009
    Location
    PA USA
    MS-Off Ver
    Excel 2000
    Posts
    184

    Re: Set page breaks at specific rows?

    Quote Originally Posted by Leith Ross View Post
    Is the worksheet protected?
    No it is not protected.

    Sorry, I had this in the Private Sub Worksheet_Activate() section.

    Is there a way to make the code work in the Private Sub Worksheet_Activate() section?

    I get this error on the .Cells code: "Invalid or unqualified reference."
    Last edited by proepert; 05-05-2010 at 11:06 PM.

  4. #4
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,259

    Re: Set page breaks at specific rows?

    Hello proepert,

    Try this...
    Please Login or Register  to view this content.

  5. #5
    Forum Contributor
    Join Date
    11-17-2009
    Location
    PA USA
    MS-Off Ver
    Excel 2000
    Posts
    184

    Re: Set page breaks at specific rows?

    Thank you very much.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

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

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1