Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Redundant908
 
Posts: n/a
Default How do I copy a worksheet's print parameters to other worksheets?

I continually am changing the print parameters on worksheets. Often the print
parameters are the same throughout the spreadsheet. Certainly there must be a
way to: change the margins, have the same footer, always print landscape on
legal paper without changing this on every worksheet!
Thanks
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
John Michl
 
Posts: n/a
Default How do I copy a worksheet's print parameters to other worksheets?

Try recording a macro that changes one print setting for the sheet with
the proper settings. Be sure to assign it a shortcut key. This will
actually record most if not all of the settings. The macro will be
recorded referencing the "ActiveSheet" not the actual sheet name. The
code below was captured that way. The short cut was set to Ctrl-Q. All
I set during the macro was the orientation. Now switch to any other
sheet that should be changed and press ctrl-q.

You could also add a For Next loop so that it cycles through all of the
sheets if you know a little VBA.

- John
www.JohnMichl.com

Sub SetPrintSettings()
'
' SetPrintSettings Macro
' Macro recorded 12/6/2005 by John '
' Keyboard Shortcut: Ctrl+q
'
With ActiveSheet.PageSetup
.PrintTitleRows = ""
.PrintTitleColumns = ""
End With
ActiveSheet.PageSetup.PrintArea = ""
With ActiveSheet.PageSetup
.LeftHeader = ""
.CenterHeader = ""
.RightHeader = ""
.LeftFooter = ""
.CenterFooter = ""
.RightFooter = ""
.LeftMargin = Application.InchesToPoints(0.75)
.RightMargin = Application.InchesToPoints(0.75)
.TopMargin = Application.InchesToPoints(1)
.BottomMargin = Application.InchesToPoints(1)
.HeaderMargin = Application.InchesToPoints(0.5)
.FooterMargin = Application.InchesToPoints(0.5)
.PrintHeadings = False
.PrintGridlines = False
.PrintComments = xlPrintNoComments
.PrintQuality = 600
.CenterHorizontally = False
.CenterVertically = False
.Orientation = xlLandscape
.Draft = False
.PaperSize = xlPaperLetter
.FirstPageNumber = xlAutomatic
.Order = xlDownThenOver
.BlackAndWhite = False
.Zoom = 100
.PrintErrors = xlPrintErrorsDisplayed
End With
End Sub

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Gord Dibben
 
Posts: n/a
Default How do I copy a worksheet's print parameters to other worksheets?

Most print setup functions are available with grouped worksheets.

Right-click on first sheet and "select all sheets".

Do your print setup on the active sheet and will be done to all.

Setting the Print Area and Print Titles functions are not available with
grouped worksheets.


Gord Dibben Excel MVP

On Tue, 6 Dec 2005 13:44:02 -0800, Redundant908
wrote:

I continually am changing the print parameters on worksheets. Often the print
parameters are the same throughout the spreadsheet. Certainly there must be a
way to: change the margins, have the same footer, always print landscape on
legal paper without changing this on every worksheet!
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
Print conditional worksheets jhicsupt Excel Discussion (Misc queries) 2 October 8th 05 01:01 PM
Print order of worksheets Stray Doug Excel Discussion (Misc queries) 3 September 21st 05 12:37 AM
filter 15 worksheets so i can print all on one page kristie626 Excel Worksheet Functions 1 August 16th 05 10:22 PM
print out of worksheets Ankur Excel Worksheet Functions 3 August 11th 05 01:12 PM
What is the simplest way to print multiple worksheets? substring Charts and Charting in Excel 1 April 21st 05 11:49 PM


All times are GMT +1. The time now is 04:25 AM.

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"