Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
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
Posted to microsoft.public.excel.programming
|
|||
|
|||
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 Befo=Cells(xr, 1) Next xr End Sub -- Cheers Nigel "Steved" wrote in message ... 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
Posted to microsoft.public.excel.programming
|
|||
|
|||
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 Befo=Cells(xr, 1) Next xr End Sub -- Cheers Nigel "Steved" wrote in message ... 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 |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
How to remove page break lines in normal view? | Excel Discussion (Misc queries) | |||
how to remove the page break lines in a spread sheet, | Excel Discussion (Misc queries) | |||
Page Break Lines in Excel 2007 | Excel Discussion (Misc queries) | |||
Can I set an automatic page breaks to break every 40 lines? | Excel Discussion (Misc queries) | |||
Hatched page break lines | Excel Programming |