Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 142
Default HPageBreak not working

I am using Excel 2003 (ancient like me). I can insert an entry into the
HPageBreaks collection by "Insert/PageBreak" in Excel or by
ActivePage.HPageBreaks.add befo=Range("A28")
in VBA.

When I use either method, the page break is, in fact in the collection.
However when I look with Print Preview or actually print the worksheet, the
pagebreak does not take place. There is also no page marker in normal
view.

If I select the cell (or row) and click on the Insert menu, one of the
options is "Remove PageBreak" so I know the break is in the collection.

What could be causing this and how can I fix it?

Many thanks for any help.
  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 142
Default HPageBreak not working

Thanks for you reply!.

Your suggestion does not work either - also - see next post with Subject:
HPageBreak not working

On Sat, 13 Oct 2012 15:54:05 +0200, Claus Busch
wrote:

Hi,

Am Sat, 13 Oct 2012 09:28:50 -0400 schrieb :

I am using Excel 2003 (ancient like me). I can insert an entry into the
HPageBreaks collection by "Insert/PageBreak" in Excel or by
ActivePage.HPageBreaks.add befo=Range("A28")
in VBA.


try it with:
ActiveSheet.HPageBreaks.Add Range("A28")


Regards
Claus Busch


  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 142
Default HPageBreak not working

Thanks for you reply!.

Your suggestion does not work either - also - see next post with Subject:
HPageBreak not working

On Sat, 13 Oct 2012 15:54:05 +0200, Claus Busch
wrote:

Hi,

Am Sat, 13 Oct 2012 09:28:50 -0400 schrieb :

I am using Excel 2003 (ancient like me). I can insert an entry into the
HPageBreaks collection by "Insert/PageBreak" in Excel or by
ActivePage.HPageBreaks.add befo=Range("A28")
in VBA.


try it with:
ActiveSheet.HPageBreaks.Add Range("A28")


Regards
Claus Busch


  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 279
Default HPageBreak not working

In message of Sat, 13 Oct
2012 10:41:07 in microsoft.public.excel.programming,
writes
Thanks for you reply!.

Your suggestion does not work either - also - see next post with Subject:
HPageBreak not working

On Sat, 13 Oct 2012 15:54:05 +0200, Claus Busch
wrote:

Hi,

Am Sat, 13 Oct 2012 09:28:50 -0400 schrieb
:

I am using Excel 2003 (ancient like me). I can insert an entry into the
HPageBreaks collection by "Insert/PageBreak" in Excel or by
ActivePage.HPageBreaks.add befo=Range("A28")
in VBA.


try it with:
ActiveSheet.HPageBreaks.Add Range("A28")


Regards
Claus Busch



I think it unhelpful that you opened a second subject and said:
When I use any method (in Excel or in VBA) to insert an HPageBreaks, it
goes into the collection and it works, UNLESS I have the row heights set
like I want them. Then no HPageBreak works, no matter what row I put it


THAT is the bit I would like to see.

on. hen the HPageBreak is still in the collection (I can find it there)
but no PageBreak actually occurs. There is no page marker on the screen
(Either the HPageBreak or automatic breaks), Print Preview does not show
the break, and when actually printed, the break does not occur.

Thanks so much for any help.


When I insert pagebreaks, I use
ActiveWindow.SelectedSheets.HPageBreaks.Add Befo=PlaceForPageThrow
where PlaceForPageThrow is a one cell range. I can't remember where I
found it, but have been using it for several years. I have tidied it to
ActiveSheet.HPageBreaks.Add Befo=PlaceForPageThrow
which seems to work.

I suggest you construct VBA to show the problem, starting in an empty
sheet. i.e. This works ..., but this fails. Ideas may then occur.
--
Walter Briscoe


Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
HPageBreak Row Oscar Excel Programming 1 May 5th 06 09:05 AM
need help with hpagebreak btm Excel Programming 3 July 5th 05 01:25 PM
hpagebreak and vpagebreak btm Excel Programming 6 July 5th 05 01:10 PM
Hpagebreak help needed please Lars Kofod Excel Programming 3 November 28th 03 03:14 PM
HPageBreak billQ Excel Programming 1 July 24th 03 02:18 AM


All times are GMT +1. The time now is 03:49 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"