Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 24
Default Finding the current "print range"

Folks

I am trying to build a function that would take as parameter a single
cell and would return a range corresponding to the area that would
print on the same page than the said cell.
I know that recent XL versions have a "page break preview" mode that
does everything I'm looking for... but it doesn't seem to be
accessible from the object model.

Any idea ? I'm pretty sure this is a common question...

Regards

--alexT
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,718
Default Finding the current "print range"

I'm pretty sure this is a common question...

Not at all, you may be the first astonishingly enough. I guess you'd have
to find all the pagebreaks, horizontal and vertical and see where your cell
falls in. This could get real tricky if you have a multi-area print_area
and especially any partial page breaks.

--
Jim Rech
Excel MVP
"Alex T" wrote in message
om...
| Folks
|
| I am trying to build a function that would take as parameter a single
| cell and would return a range corresponding to the area that would
| print on the same page than the said cell.
| I know that recent XL versions have a "page break preview" mode that
| does everything I'm looking for... but it doesn't seem to be
| accessible from the object model.
|
| Any idea ? I'm pretty sure this is a common question...
|
| Regards
|
| --alexT


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
Functions for "current" & "previous" month to calculate data Priss Excel Worksheet Functions 11 April 15th 08 06:24 PM
In Excel 2003 is there a way to prevent "Save As" and "Print"? lucky2000 Excel Discussion (Misc queries) 3 April 26th 07 02:49 PM
Using "Cells" to write "Range("A:A,H:H").Select" Trip Ives[_2_] Excel Programming 3 June 5th 04 03:13 PM
What are the System Tables named "Print Area" & "Print Titles"? Tom Ogilvy Excel Programming 1 August 18th 03 05:38 PM


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