Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 7
Default setting page setup/print area for multiple sheets

I have an excel file with many sheets. I would like to do the same
'Page Setup' and 'Print Area -Set Print Area' for every page in the
file. Is there a way to do this without having to do each sheet
manually?

Thanks.

  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 364
Default setting page setup/print area for multiple sheets

wrote in message
ups.com...
I have an excel file with many sheets. I would like to do the same
'Page Setup' and 'Print Area -Set Print Area' for every page in the
file. Is there a way to do this without having to do each sheet
manually?

Thanks.


Select all the sheets. (To do this, click on the tab of the first, then hold
down SHIFT whilst clicking the tab of the last). Then, whatever you do to
the visible sheet (such as setting the print area) will be applied to all.
So, don't forget to remove the multiple sheet selection (click any
intermediate sheet tab) before you carry on with other work!


  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,073
Default setting page setup/print area for multiple sheets

On Oct 27, 12:42 am, "Stephen" <none wrote:
wrote in message

ups.com...

I have an excel file with many sheets. I would like to do the same
'Page Setup' and 'Print Area -Set Print Area' for every page in the
file. Is there a way to do this without having to do each sheet
manually?


Thanks.


Select all the sheets. (To do this, click on the tab of the first, then hold
down SHIFT whilst clicking the tab of the last). Then, whatever you do to
the visible sheet (such as setting the print area) will be applied to all.
So, don't forget to remove the multiple sheet selection (click any
intermediate sheet tab) before you carry on with other work!


Stephen,

When I tried that (xl2003) the Set Print Area option was greyed out.

I think a macro needs to be used...

Option Explicit
Sub PrintAreaAllWkshts()
Dim strPA As String, Sht As Worksheet
On Error GoTo NOT_RANGE
strPA = Selection.Address
For Each Sht In ActiveWorkbook.Worksheets
Sht.PageSetup.PrintArea = strPA
Next
Exit Sub
NOT_RANGE: MsgBox "Select the Print Area Cells, then try again!"
End Sub

seems to work.

Ken Johnson

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 10,124
Default setting page setup/print area for multiple sheets


Or
for each ws in worksheets
range("a1:b6").printout
next
--
Don Guillett
Microsoft MVP Excel
SalesAid Software

wrote in message
ups.com...
I have an excel file with many sheets. I would like to do the same
'Page Setup' and 'Print Area -Set Print Area' for every page in the
file. Is there a way to do this without having to do each sheet
manually?

Thanks.


  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 7
Default setting page setup/print area for multiple sheets

On Oct 26, 11:10 am, "Don Guillett" wrote:
Or
for each ws in worksheets
range("a1:b6").printout
next
--



I tried this. Unfortunately, this caused the range of the current
sheet to be printed the number of times as there were sheets.

How do I indicate the range for the current ws when iterating through
the list?

-Eric



  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 10,124
Default setting page setup/print area for multiple sheets

My booboo
for each ws in worksheets
ws.range("a1:b6").printout
next

If the range changes with each ws you will need to use something else such
as select case. What are the details?

--
Don Guillett
Microsoft MVP Excel
SalesAid Software

wrote in message
oups.com...
On Oct 26, 11:10 am, "Don Guillett" wrote:
Or
for each ws in worksheets
range("a1:b6").printout
next
--



I tried this. Unfortunately, this caused the range of the current
sheet to be printed the number of times as there were sheets.

How do I indicate the range for the current ws when iterating through
the list?

-Eric


  #7   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 22,906
Default setting page setup/print area for multiple sheets

Using VBA code you can set the same print range and rows to repeat at top on
each sheet in grouped sheets.

For anyone interested in the code see this google search result with Dave
Peterson and myself posting. The print area code is from Bob Flanagan.

http://snipurl.com/106kz


Gord Dibben MS Excel MVP

On Fri, 26 Oct 2007 14:33:12 -0000, wrote:

I have an excel file with many sheets. I would like to do the same
'Page Setup' and 'Print Area -Set Print Area' for every page in the
file. Is there a way to do this without having to do each sheet
manually?

Thanks.


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 the print area in page set up to print 1 page wide by 2 pages tall EA[_2_] Excel Discussion (Misc queries) 2 July 12th 07 08:39 PM
Print 1st Page Multiple Sheets in Same Workbook Ben Dummar Excel Discussion (Misc queries) 8 May 22nd 07 09:18 PM
Why I get gray area in sheet tab of page setup? can't resize area. joey0617 Excel Discussion (Misc queries) 1 July 15th 06 05:30 PM
setting Page Setup on a workbook level [email protected] Excel Discussion (Misc queries) 1 June 14th 06 06:07 PM
In Excel print area setup problem with 2 different computers with. Rafi Setting up and Configuration of Excel 1 December 22nd 04 10:44 AM


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