+ Reply to Thread
Results 1 to 2 of 2

Automatically insert page break every 6 rows in excel doc

  1. #1
    Icetea
    Guest

    Automatically insert page break every 6 rows in excel doc

    I have a very large excel document and I need to insert a page break, say
    after a fixed number of rows eg 6 rows. To insert page break manually it will
    take hours. Can anybody help ?

  2. #2
    Ian
    Guest

    Re: Automatically insert page break every 6 rows in excel doc

    Try this:

    Sub insert_page_breaks()
    For r = 7 To 100 Step 6
    Worksheets("Sheet1").Rows(r).PageBreak = xlPageBreakManual
    Next
    End Sub

    --
    Ian
    --
    "Icetea" <[email protected]> wrote in message
    news:[email protected]...
    >I have a very large excel document and I need to insert a page break, say
    > after a fixed number of rows eg 6 rows. To insert page break manually it
    > will
    > take hours. Can anybody help ?




+ 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