Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default How to programmatically determine actual page count in Excel 2003?

I need a way to determine the actual number of printed pages for a worksheet.
If you place Excel into "Page Break Preview" view and expand the view area,
you will see sections titled "Page 1", "Page 2", "Page 3", "Page 4", etc
depending on the number of horizontal and vertical page breaks. Excel has an
"IntelliPrint" feaure that only prints non-blank pages thus if I put data in
a cell on Page 1, 2, and 3 and print preview the sheet, the page count is 3.
However, if I use Microsoft's recommended way of determining page count,
ExecuteExcel4Macro("GET.DOCUMENT(50)") the returned page count is 4 (I'm
assuming it is using the (hpagebreak.count+1)*(vpagebreak.count+1) method you
see in various posts). Does anyone know how to determine the actual printed
page count?
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
Programmatically determine Chart's data source drussell Excel Programming 2 March 4th 06 05:25 AM
How to programmatically determine which rows are outlined using Excel VBA code David Excel Programming 1 February 26th 05 02:29 AM
Programmatically inserting a row with Excel 2003 stonequest Excel Programming 4 May 3rd 04 11:58 AM
Programmatically determine if a control is .VISIBLE or not. Toby Erkson Excel Programming 2 April 16th 04 11:51 PM
excel web query problem, data not on actual page? Enjoy Life Excel Programming 2 January 24th 04 06:04 PM


All times are GMT +1. The time now is 11:45 AM.

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

About Us

"It's about Microsoft Excel"