PC Review


Reply
Thread Tools Rate Thread

All sheets in workbook have same rows to repeat at top

 
 
Subodh
Guest
Posts: n/a
 
      26th Jun 2011
I want to repeat the same rows (Rows 1 to 3) from a worksheet say
Sheet1 when printing any sheet
of the workbook.
When I try to do that I cannot select multiple sheet at the same time.
I also tried to select all the sheets and then try with the printing
command.
This also didn't work. It appears that this is a sheet only property.
Is there a way around.
Thanks in advance.
 
Reply With Quote
 
 
 
 
Gord Dibben
Guest
Posts: n/a
 
      26th Jun 2011
You need VBA to achieve this.

Sub test()
Dim ws As Worksheet
For Each ws In ActiveWorkbook.Sheets
'For Each ws In ActiveWindow.SelectedSheets
If ws.Type = xlWorksheet Then
ws.PageSetup.PrintTitleRows = "$1:$3"
End If
Next
End Sub

NOTE: this will select rows 1:3 of each Sheet, not rows 1:3 of Sheet1

>I want to repeat the same rows (Rows 1 to 3) from a worksheet say
>Sheet1 when printing any sheet


If you wanted 1:3 of Sheet1 to print on other sheets you would have to copy
those rows to each sheet.


Gord Dibben MS Excel MVP

On Sun, 26 Jun 2011 05:06:32 -0700 (PDT), Subodh <(E-Mail Removed)> wrote:


>of the workbook.
>When I try to do that I cannot select multiple sheet at the same time.
>I also tried to select all the sheets and then try with the printing
>command.
>This also didn't work. It appears that this is a sheet only property.
>Is there a way around.
>Thanks in advance.

 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Repeat the titles across multiple sheets of a workbook. Subodh Microsoft Excel Programming 6 14th Oct 2009 02:47 PM
How to repeat a code for selected sheets (or a contiguous range of sheets) in a Workbook? Dmitry Microsoft Excel Discussion 6 29th Mar 2006 12:43 PM
How to repeat a code for selected sheets (or a contiguous range of sheets) in a Workbook? Dmitry Microsoft Excel Programming 6 29th Mar 2006 12:43 PM
How to repeat a code for selected sheets (or a contiguous range of sheets) in a Workbook? Dmitry Microsoft Excel Worksheet Functions 6 29th Mar 2006 12:43 PM
VBA Code To have a macro repeat on all sheets in a workbook =?Utf-8?B?Y2FybA==?= Microsoft Excel Worksheet Functions 3 3rd Nov 2005 07:48 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:21 AM.