LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #10   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 90
Default Page Break Preview Page Number


**** WARNING - .hpagebreaks.count ****

The theatrics are because I am amending what I patly asserted earlier.

(VPageBreaks.count+1)*(HPageBreaks.count+1) is your print page total

..hpagebreaks.count+1 is NOT the total vertical page count if there is a
HARD page break at bottom of the print range. In THAT case,
..hpagebreaks.count is the total vertical page count.
..vpagebreaks.count behaves analogously with a hard columnar page break.

Verified on XL97, XL03. Other than self-policing that there are no hard
page breaks at the edge of the print range (which might be just cool for
you, Neal), the only prohibitive solution that I could see would be to
test .HPageBreaks.Item(.hpagebreaks.count).Location against the bottom
row of the print area. And the same would apply for testing vpagebreaks.

Sorry - I just discovered this, and I feel like a pinhead for neglecting
this if anyone reading the thread uses .Count without reading this far.

A hard page break results from menu Insert/Break/Page Break. To my
knowledge, hard breaks are neither created nor destroyed by manipulating
the Page Break Preview interface, where you can drag break locations.

There are 20 or more REAL gurus here that are intimately familiar with
Excel internals, in case any of them care to weigh in.


 
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
Remove big gray page number on Page Break Preview??? annafred Excel Discussion (Misc queries) 1 January 9th 07 02:28 AM
How do I remove the big page number on the Page Break Preview annafred Excel Discussion (Misc queries) 1 January 9th 07 02:27 AM
change page number watermark in page break preview juga Excel Discussion (Misc queries) 2 December 25th 06 10:16 AM
change and/or remove page number watermark in page break preview juga Excel Discussion (Misc queries) 2 December 25th 06 10:15 AM
Hiding the page number in page break preview background. I need coffee, wake me up! Excel Discussion (Misc queries) 0 May 15th 06 10:32 AM


All times are GMT +1. The time now is 10:03 AM.

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"