Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 694
Default Multiple print title rows

Chris,

You can print out more than one row in the headers.

So you set the print titles and the print area with the following:

With ActiveSheet.PageSetup
.PrintTitleRows = "$1:$3"
.PrintTitleColumns = ""
.PrintArea = "$4:$16"
End With

and then print it out and then you set the print titles and the print area
again with the following:

With ActiveSheet.PageSetup
.PrintTitleRows = "$30:$32"
.PrintTitleColumns = ""
.PrintArea = "$33:$166"
End With

and then print it out.
--
Hope this helps
Martin Fishlock
Please do not forget to rate this reply.


"ChrisO" wrote:

Hello,

I have a worksheet with two sections of data, both of which may spread
across multiple pages in printed output.

Each section has a different set of column headers, which I want to use as
the title row for each printed page.

I am familiar with using the PrintTitleRows property but this only allows me
to have one title row(s), which is fine for the first section but not for the
second one.

Can anyone tell me if there is a way (in a macro) to set up separate title
rows for different sections of a single worksheet.

Many thanks.

Chris

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 694
Default Multiple print title rows

To the best of my knowledge 'No can do'.

The way that I have done it is to emulate the printing and then set the page
numbers if need etc. for the second run.

Maybe 2007 allows us to do it.......
--
Hope this helps
Martin Fishlock
Please do not forget to rate this reply.


"ChrisO" wrote:

Martin,

Thanks for your response. I think your approach involves setting the print
area and title row(s) for a section then printing this section, resetting
both for the second section and then printing this. What I really want to do
is to print both sections in one go with different title row(s) for each
section.

Chris

"Martin Fishlock" wrote:

Chris,

You can print out more than one row in the headers.

So you set the print titles and the print area with the following:

With ActiveSheet.PageSetup
.PrintTitleRows = "$1:$3"
.PrintTitleColumns = ""
.PrintArea = "$4:$16"
End With

and then print it out and then you set the print titles and the print area
again with the following:

With ActiveSheet.PageSetup
.PrintTitleRows = "$30:$32"
.PrintTitleColumns = ""
.PrintArea = "$33:$166"
End With

and then print it out.
--
Hope this helps
Martin Fishlock
Please do not forget to rate this reply.


"ChrisO" wrote:

Hello,

I have a worksheet with two sections of data, both of which may spread
across multiple pages in printed output.

Each section has a different set of column headers, which I want to use as
the title row for each printed page.

I am familiar with using the PrintTitleRows property but this only allows me
to have one title row(s), which is fine for the first section but not for the
second one.

Can anyone tell me if there is a way (in a macro) to set up separate title
rows for different sections of a single worksheet.

Many thanks.

Chris

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
Print Title AngieS Excel Worksheet Functions 0 March 1st 11 10:20 PM
Print Title Error atmbonda Excel Discussion (Misc queries) 2 May 8th 09 01:59 PM
how print title for only first 9 of 10 pages? Ian Elliott Excel Discussion (Misc queries) 0 October 6th 06 09:47 PM
format rows to print at top for multiple tabs ESS Joan Setting up and Configuration of Excel 1 June 2nd 06 05:33 PM
print multiple, separate rows on each page DPixie Excel Discussion (Misc queries) 1 April 21st 05 06:40 AM


All times are GMT +1. The time now is 09:56 PM.

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"