Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default How do you apply a print area to an entire workbook

I want to apply a print range to multiple worksheets in the same workbook.
The data area in all the worksheets is the same & I'd like to know if there
is an easier way of applying rather than having to go into each worksheet.
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 63
Default How do you apply a print area to an entire workbook

You can use a macro like this to apply the same print area to all worksheets:

Sub printarea()
For Each ws In Worksheets
ws.PageSetup.printarea = "$A$1:$D$5"
Next ws
End Sub

To apply to a group you could use something like:

Sub printarea()
ws = 0
While ws < 2
ws = ws + 1
ActiveWorkbook.Sheets(ws).PageSetup.printarea = "$A$1:$b$3"
Wend
End Sub

(This would only affect sheets 1 and 2)

Andrea Jones
www.stratatraining.co.uk
"Darrelldebb" wrote:

I want to apply a print range to multiple worksheets in the same workbook.
The data area in all the worksheets is the same & I'd like to know if there
is an easier way of applying rather than having to go into each worksheet.

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
Setting print area for entire workbook scru_ball[_2_] Excel Discussion (Misc queries) 2 February 3rd 09 04:09 PM
How can I apply print area and page setup to entire workbook? Simon Willard Excel Discussion (Misc queries) 1 September 8th 08 01:49 PM
Set print area for entire workbook Flambeau Excel Discussion (Misc queries) 3 June 16th 07 01:38 AM
how to set print area for the entire excel workbook milesel Excel Discussion (Misc queries) 1 May 5th 06 12:11 AM
changing print area in an entire workbook lschuh Excel Worksheet Functions 7 August 4th 05 02:52 PM


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