Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Print Last Page
Hello all,
I'd like to create a macro that will print only the last page in a document. Its a log file that accumulates lots of information, and instead of re-printing the entire document each time... it'd be nice to have only the last page print, or even the last 5 rows or so. Any help or direction would be appreciated. Thanks Heather Irvin |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
Print Last Page
Hi
Try this Heather Sub Test() Dim TotPages As Long TotPages = Application.ExecuteExcel4Macro("GET.DOCUMENT(50)") ActiveSheet.PrintOut From:=TotPages, To:=TotPages End Sub -- Regards Ron de Bruin http://www.rondebruin.nl "Heather Irvin" wrote in message ... Hello all, I'd like to create a macro that will print only the last page in a document. Its a log file that accumulates lots of information, and instead of re-printing the entire document each time... it'd be nice to have only the last page print, or even the last 5 rows or so. Any help or direction would be appreciated. Thanks Heather Irvin |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
how do you print single page multiply times with increasing page . | Excel Worksheet Functions | |||
Setting the print area in page set up to print 1 page wide by 2 pages tall | Excel Discussion (Misc queries) | |||
PRINT PAGE BREAK VIEW AS WATERMARK FIOR EACH PAGE | Setting up and Configuration of Excel | |||
Active cell counting in particular print page (one sheet having different print area) | Excel Worksheet Functions | |||
How do I print a one page spreadsheet multiple time, each with its own page number? | Excel Discussion (Misc queries) |