Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi, Here's a tricky one...
I want to be able to select a specific page in a workbook, and copy it to another workbook. For example: if sheet 1 prints out over 3 pages, I need the vba to select the second page of this. I can use VBA to select manually added pagebreaks, by referring to the vpagebreaks and hpagebreaks collections of the sheet, but this does NOT reference automatically added page breaks. This is probably because auto-pagebreaks have to be recalculated (re-paginated) every time you add or remove lines. I also tried looking at things like sheet.pagesetup.printarea, but no luck. Is it possible to do something like: thisworkbook.printout() and use the print to file, to export the pages as a seperate workbook? Failing this, I shall go tell my client that it can't be done and blame excel. |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Selecting Page Tabs | Excel Discussion (Misc queries) | |||
Page Setup not selecting | Excel Programming | |||
Selecting Text and deleting Page | Excel Programming | |||
Selecting all contents on page (range) | Excel Programming | |||
Selecting a Page in Page Break Preview | Excel Programming |