LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Count all page breaks

msgbox application.ExecuteExcel4Macro("Get.Document(50)")

--
Regards,
Tom Ogilvy

"quartz" wrote in message
...
Using VBA in XL XP I am trying to determine whether each sheet, when

printed,
will be one or two pages.

A print area is set on each sheet. No hard page breaks are set.

Sometimes the print area extends beyond one page and so a soft page break
occurs. The second page may be blank or it may not.

I need a function that will tell me how many pages will be printed. DO NOT
tell me to use: ActiveSheet.HPageBreaks.Count as this DOES NOT WORK since

it
doesn't tell you if there is a partial second page or not within the print
area.

Please help this frustrated soul. Thanks much in advance.



 
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
Vertical page breaks won't drag in Page Break Preview Caroline Excel Discussion (Misc queries) 0 July 14th 09 12:19 PM
How do I do page breaks when view menu doesnt page break preview HeatherF55 Excel Discussion (Misc queries) 0 September 21st 07 04:24 AM
Page Breaks- Printing selected rows on same page ToddEZ Excel Discussion (Misc queries) 1 July 18th 07 04:38 PM
Count number of manual and automatic vertical page breaks - examples DataFreakFromUtah Excel Programming 0 January 13th 04 03:52 PM
Count the number of just the horizontal manual page breaks DataFreakFromUtah Excel Programming 1 November 27th 03 03:59 PM


All times are GMT +1. The time now is 04:42 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"