Prev Previous Post   Next Post Next
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35,218
Default Help Reg Print

Ron de Bruin has lots of printing tips he
http://www.rondebruin.nl/print.htm#not

That page is how to print a header on only the first sheet.

But you could modify the code so that it prints in pairs of sheets and changes
the header for each printing.

Option Explicit
Sub testme()
Dim TotPages As Long
Dim iCtr As Long
TotPages = Application.ExecuteExcel4Macro("GET.DOCUMENT(50)")

For iCtr = 1 To TotPages Step 2
With Worksheets("Sheet1")
.PageSetup.RightHeader = "Your Header info"
.PageSetup.CenterHeader = "Control: " & (iCtr + 1) / 2
.PageSetup.RightHeader = ""
.PrintOut preview:=True, From:=iCtr, To:=iCtr + 1
End With
Next iCtr
End Sub

(I used preview:=true to save trees while testing.)

If you're printing to a network printer and you have banner pages, expect a
banner page for each print job.



Aligahk06 wrote:

Dear All,

I am printing total more than 50 pages.For each page rows to repeat at top
are row 1 to row10.
rOWS 8 there is a title called Control #.
i.e I mean for page number 1 to 2 Control # is 1 ,page number 3 to 4 Control
# is 2
and so on.
Can i have any techniques that automatically change the control # 1 for
print page 1 to 2
control # 2 for print page 3 to 4 and so on.

I want its done automatically once i give the print command for the entire
page.

Hope u understand my query?

Please assist ?

Rgds,

Alighak06


--

Dave Peterson
 
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
First page of Excel sheerepeats in print layout or print preview philfrotonda Excel Discussion (Misc queries) 1 July 12th 07 09:28 PM
Print and Print Preview Graphic Moving Resizing 2007/2003 Adam Rayburn Excel Discussion (Misc queries) 0 April 4th 07 04:18 PM
cell borders that I create dont show on print preview or print scott3435 Excel Discussion (Misc queries) 2 April 6th 06 02:37 AM
Pivot Table macro to set print area and print details of drill down data Steve Haskins Excel Discussion (Misc queries) 2 December 28th 05 04:59 PM
Active cell counting in particular print page (one sheet having different print area) ananthmca2004 Excel Worksheet Functions 1 November 24th 05 11:29 AM


All times are GMT +1. The time now is 08:14 AM.

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"