Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 5
Default Multiple Sheet Print Range

Is there a way to set the same print range for a group of worksheets without
having to set it for each sheet individually?
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 22,906
Default Multiple Sheet Print Range

Try this macro

Sub Set_Print_Range()
Set MySheets = ActiveWindow.SelectedSheets
For Each ws In MySheets
ws.Select
ActiveSheet.PageSetup.PrintArea = "$A$1:$E$20"
Next
End Sub

Select the sheets first then run the macro.


Gord Dibben MS Excel MVP

On Mon, 6 Nov 2006 13:41:01 -0800, lanrcdd
wrote:

Is there a way to set the same print range for a group of worksheets without
having to set it for each sheet individually?


  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 5
Default Multiple Sheet Print Range

Gord:
Thank You, this worked perfectly!!! Now here's a real challenge that relates
to this same work book. Is it possible to do the following: I have a workbook
with 25 worksheets and each worksheet has a "Page 1" print range (A1:K41) and
a "Page 2" Print Range (M9:V41). Is it possible to setup a macro that will
setup to print the entire workbook in the following order: ws1-print range 1,
ws1-print range 2, ws2-print range 1, ws2-print range 2, ws3-print range 1,
ws3-print range 2, etc.?

Bruce

"Gord Dibben" wrote:

Try this macro

Sub Set_Print_Range()
Set MySheets = ActiveWindow.SelectedSheets
For Each ws In MySheets
ws.Select
ActiveSheet.PageSetup.PrintArea = "$A$1:$E$20"
Next
End Sub

Select the sheets first then run the macro.


Gord Dibben MS Excel MVP

On Mon, 6 Nov 2006 13:41:01 -0800, lanrcdd
wrote:

Is there a way to set the same print range for a group of worksheets without
having to set it for each sheet individually?



  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 22,906
Default Multiple Sheet Print Range

You could try this macro.

Note: to set things like margins, headers, footers etc. group the sheets and do
those steps before running the macro.

Or record a macro whilst doing those steps and incorporate into the
Set_Print_Range macro.

Sub Set_Print_Range()
Set MySheets = ActiveWindow.SelectedSheets
For Each ws In MySheets
ws.Select
With ActiveSheet
.PageSetup.PrintArea = "$A$1:$K$41"
.PrintOut
.PageSetup.PrintArea = "$M$9:$V$41"
.PrintOut
End With
Next ws
End Sub


Gord

On Tue, 7 Nov 2006 07:24:02 -0800, lanrcdd
wrote:

Gord:
Thank You, this worked perfectly!!! Now here's a real challenge that relates
to this same work book. Is it possible to do the following: I have a workbook
with 25 worksheets and each worksheet has a "Page 1" print range (A1:K41) and
a "Page 2" Print Range (M9:V41). Is it possible to setup a macro that will
setup to print the entire workbook in the following order: ws1-print range 1,
ws1-print range 2, ws2-print range 1, ws2-print range 2, ws3-print range 1,
ws3-print range 2, etc.?

Bruce

"Gord Dibben" wrote:

Try this macro

Sub Set_Print_Range()
Set MySheets = ActiveWindow.SelectedSheets
For Each ws In MySheets
ws.Select
ActiveSheet.PageSetup.PrintArea = "$A$1:$E$20"
Next
End Sub

Select the sheets first then run the macro.


Gord Dibben MS Excel MVP

On Mon, 6 Nov 2006 13:41:01 -0800, lanrcdd
wrote:

Is there a way to set the same print range for a group of worksheets without
having to set it for each sheet individually?




  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 5
Default Multiple Sheet Print Range

Thanks again, works like a charm.

"Gord Dibben" wrote:

You could try this macro.

Note: to set things like margins, headers, footers etc. group the sheets and do
those steps before running the macro.

Or record a macro whilst doing those steps and incorporate into the
Set_Print_Range macro.

Sub Set_Print_Range()
Set MySheets = ActiveWindow.SelectedSheets
For Each ws In MySheets
ws.Select
With ActiveSheet
.PageSetup.PrintArea = "$A$1:$K$41"
.PrintOut
.PageSetup.PrintArea = "$M$9:$V$41"
.PrintOut
End With
Next ws
End Sub


Gord

On Tue, 7 Nov 2006 07:24:02 -0800, lanrcdd
wrote:

Gord:
Thank You, this worked perfectly!!! Now here's a real challenge that relates
to this same work book. Is it possible to do the following: I have a workbook
with 25 worksheets and each worksheet has a "Page 1" print range (A1:K41) and
a "Page 2" Print Range (M9:V41). Is it possible to setup a macro that will
setup to print the entire workbook in the following order: ws1-print range 1,
ws1-print range 2, ws2-print range 1, ws2-print range 2, ws3-print range 1,
ws3-print range 2, etc.?

Bruce

"Gord Dibben" wrote:

Try this macro

Sub Set_Print_Range()
Set MySheets = ActiveWindow.SelectedSheets
For Each ws In MySheets
ws.Select
ActiveSheet.PageSetup.PrintArea = "$A$1:$E$20"
Next
End Sub

Select the sheets first then run the macro.


Gord Dibben MS Excel MVP

On Mon, 6 Nov 2006 13:41:01 -0800, lanrcdd
wrote:

Is there a way to set the same print range for a group of worksheets without
having to set it for each sheet individually?




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 mutiple sheet macro Razzcul Excel Worksheet Functions 1 August 11th 06 06:52 PM
Match and Sort for two range of data on different worksheets? Tan New Users to Excel 3 March 9th 06 08:55 AM
?set up a print range to cover multiple pages in excel JBC Excel Worksheet Functions 3 March 6th 06 03:04 PM
Copying multiple sheets from one book 2 another and undertake spec Pank Mehta Excel Discussion (Misc queries) 14 March 16th 05 04:41 PM
Dynamic Print Range Help waxwing Excel Worksheet Functions 2 February 21st 05 03:47 PM


All times are GMT +1. The time now is 12:11 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"