Global Print settings

Peter100

Well-known Member
Joined
Apr 21, 2002
Messages
765
I Have a Workbook with 31 sheets (one for each day of the month)

I want to set each sheet to print the same print range and have it print to 1 pages wide x 2 pages tall having the same page break position on each sheet.

Is there a way of achieving this globally or do I have top set each sheet individualy.
 

Excel Facts

Enter current date or time
Ctrl+: enters current time. Ctrl+; enters current date. Use Ctrl+: Ctrl+; Enter for current date & time.
Sub SetPrint()
Dim s
For Each s In Worksheets
s.PageSetup.PrintArea = "$A$1:$I$100"
Next
End Sub

Edit the print area..."$A$1:$I$100" to suit.
If you will need to set headers, footers, margins, ect...
Post the settings for one sheet and wqe can incorporate them into this code.

Tom
 
Upvote 0
attn: TS Tom
I've inserted the code into the Workbook area but it seems to make no difference. Am I putting it in the right place ?
The required print settings are
Print rang =A1 - I128
Page Break at row 64
Headers = A1 - I2
This message was edited by Peter100 on 2002-04-24 05:36
 
Upvote 0

Forum statistics

Threads
1,214,652
Messages
6,120,746
Members
448,989
Latest member
mariah3

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top