ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Page Break Preview Page Number as Data (https://www.excelbanter.com/excel-programming/323888-re-page-break-preview-page-number-data.html)

Neal Zimm

Page Break Preview Page Number as Data
 
found another way.
in my application a given number of rows constitutes a page in a book,
so the gist of what I needed is:

rownum=activecell.row
page= rownum / rows per page


"Neal Zimm" wrote:

I can't find a function to access the number you see in gray in the
background in this view.

Is there code to 'get at it'?
Thanks.

--
Neal Z


Neal Zimm

Page Break Preview Page Number as Data
 
For the others out there, recent news is that hpagebreaks.count gives the
number of page breaks in a documents, SOOOOOOOOOOOO,
hpagebreaks.count + 1 is the number of pages a worksheet has.

IT'S SO SIMPLE WHEN YOU KNOW IT, AND SO TOUGH WHEN YOU DON'T.


"Neal Zimm" wrote:

found another way.
in my application a given number of rows constitutes a page in a book,
so the gist of what I needed is:

rownum=activecell.row
page= rownum / rows per page


"Neal Zimm" wrote:

I can't find a function to access the number you see in gray in the
background in this view.

Is there code to 'get at it'?
Thanks.

--
Neal Z



All times are GMT +1. The time now is 08:48 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com