Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2
Default Setting print area for entire workbook

I need to set the print area for every sheet in the workbook. When I tried
grouping the sheets first, my option to set the print area was disabled. Any
ideas?
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 66
Default Setting print area for entire workbook

Would one of the following suits your needs?


Sub myMacro()
For Each ws In Worksheets
ws.PageSetup.PrintArea = "$A$1:$B$2"
Next ws
End Sub


Sub anotherPossibility()
For ws = 1 To 2
Sheets(ws).Select
ActiveSheet.PageSetup.PrintArea = "$A$1:$C$3"
Next ws
End Sub


"scru_ball" wrote:

I need to set the print area for every sheet in the workbook. When I tried
grouping the sheets first, my option to set the print area was disabled. Any
ideas?

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2
Default Setting print area for entire workbook

I have 20 different workbooks each with 26 different worksheets so I would
like to find a way not to select each one individually. When I try to select
all sheets in a workbook, the option to set print area is grayed out.

"FiluDlidu" wrote:

Would one of the following suits your needs?


Sub myMacro()
For Each ws In Worksheets
ws.PageSetup.PrintArea = "$A$1:$B$2"
Next ws
End Sub


Sub anotherPossibility()
For ws = 1 To 2
Sheets(ws).Select
ActiveSheet.PageSetup.PrintArea = "$A$1:$C$3"
Next ws
End Sub


"scru_ball" wrote:

I need to set the print area for every sheet in the workbook. When I tried
grouping the sheets first, my option to set the print area was disabled. Any
ideas?

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 Settings Across Entire Workbook Nia Excel Discussion (Misc queries) 3 April 3rd 23 02:25 PM
How can I apply print area and page setup to entire workbook? Simon Willard Excel Discussion (Misc queries) 1 September 8th 08 02:49 PM
Set print area for entire workbook Flambeau Excel Discussion (Misc queries) 3 June 16th 07 02:38 AM
how to set print area for the entire excel workbook milesel Excel Discussion (Misc queries) 1 May 5th 06 01:11 AM
changing print area in an entire workbook lschuh Excel Worksheet Functions 7 August 4th 05 03:52 PM


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