Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Array of page ranges
Hello.
I need a function or subroutine that will return an array of the page ranges on the currently active sheet. The number of pages is variable, but they always involve horizontal page breaks only (i.e. no vertical breaks). They may include both natural breaks (Excel imposed) as well as manual page breaks (so I can't just count the number of rows) to the next break. The print area is always set. So, as an example, if the set print area is "A3:J111" my array should contain a list that looks like the following: 1st Element = "A3:J53" 2nd Element = "A54:J105" 3rd Element = "A106:J111" My attempted code was so bad, I trashed it. Your example code is what I need. Please help if you can. Thanks much in advance. |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Array formula: how to join 2 ranges together to form one array? | Excel Worksheet Functions | |||
How can Enter Page Numbers and/or page ranges separated by commas. | Excel Discussion (Misc queries) | |||
Use named ranges in array formula | Excel Worksheet Functions | |||
Creating an array from non-contiguous ranges | Excel Programming | |||
how to assign ranges on different sheets to an array | Excel Programming |