+ Reply to Thread
Results 1 to 3 of 3

automatically put in page break after 14 lines.

Hybrid View

Guest automatically put in page... 08-01-2005, 09:05 PM
Guest Re: automatically put in page... 08-02-2005, 03:05 AM
Guest Re: automatically put in page... 08-02-2005, 06:05 AM
  1. #1
    Steved
    Guest

    automatically put in page break after 14 lines.

    Hello from Steved

    Is it possible please to have a line break put in after every 14 lines please.

    If this is possible How.

    Thankyou.



  2. #2
    Nigel
    Guest

    Re: automatically put in page break after 14 lines.

    You are limited to 1026 Horizontal page breaks per worksheet, so you cannot
    fill you whole sheet of 65536 rows every 14 lines. But if you need less
    than 1026 try this....... set the xr range to the maximum number of used
    rows.

    Sub PageBreaks()
    Dim xr As Long
    For xr = 15 To 500 Step 14
    ActiveWindow.SelectedSheets.HPageBreaks.Add Before:=Cells(xr, 1)
    Next xr
    End Sub

    --
    Cheers
    Nigel



    "Steved" <Steved@discussions.microsoft.com> wrote in message
    news:C89E424F-A4B6-41C3-A0D6-A76A22802B6B@microsoft.com...
    > Hello from Steved
    >
    > Is it possible please to have a line break put in after every 14 lines

    please.
    >
    > If this is possible How.
    >
    > Thankyou.
    >
    >




  3. #3
    Steved
    Guest

    Re: automatically put in page break after 14 lines.

    Excellent thanks very much

    I only reqiure just over 50, so this will do nicely.

    "Nigel" wrote:

    > You are limited to 1026 Horizontal page breaks per worksheet, so you cannot
    > fill you whole sheet of 65536 rows every 14 lines. But if you need less
    > than 1026 try this....... set the xr range to the maximum number of used
    > rows.
    >
    > Sub PageBreaks()
    > Dim xr As Long
    > For xr = 15 To 500 Step 14
    > ActiveWindow.SelectedSheets.HPageBreaks.Add Before:=Cells(xr, 1)
    > Next xr
    > End Sub
    >
    > --
    > Cheers
    > Nigel
    >
    >
    >
    > "Steved" <Steved@discussions.microsoft.com> wrote in message
    > news:C89E424F-A4B6-41C3-A0D6-A76A22802B6B@microsoft.com...
    > > Hello from Steved
    > >
    > > Is it possible please to have a line break put in after every 14 lines

    > please.
    > >
    > > If this is possible How.
    > >
    > > Thankyou.
    > >
    > >

    >
    >
    >


+ 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