Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 56
Default Printing Duplex

I use the procedure below to print out a variable number of print areas, each of which
takes up a page which it fills fine. I have the facility with a networked printer to print
duplex so that I can do both sides of a sheet of paper. I can set the printer to do this
prior to printing but on this procedure it will always just print one side of an A4 sheet.
Is there anyway to modify the code below so that if the printer is set to duplex then it
will be printed out in that way? i appreciate any help.

Regards.
Graham
Sub NewPrintAllFields()
Dim rng As Range
Dim r As Integer
Application.ScreenUpdating = False
r = Sheets("Entries").Cells(Rows.Count, "A").End(xlUp).row

For Each c In Sheets("Entries").Range("A12:A" & r)

' check if sheet exists
If WksExists(c.Value) Then
With Sheets(c.Value).PageSetup
.PrintArea = "$B$1:$O$48"
.Orientation = xlLandscape
.PaperSize = xlPaperA4
.Zoom = False
.FitToPagesWide = 1
.FitToPagesTall = 1
Sheets(c.Value).PrintOut Collate:=True
End With
Else
MsgBox "There are no Fields to print. Operation cancelled.", vbInformation, "Print
Cancelled"
Exit Sub
End If
Next
End Sub
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
Duplex Printing Macro [email protected] Excel Worksheet Functions 0 April 23rd 09 07:23 PM
Printing Duplex NeedAnAnswerForMyBoss Excel Discussion (Misc queries) 3 March 5th 08 03:59 AM
Duplex printing reno Excel Discussion (Misc queries) 3 August 25th 06 05:37 PM
Duplex Printing Paul Excel Programming 2 September 26th 05 01:03 PM
Duplex Printing Ron Dahl Excel Programming 1 October 3rd 03 02:34 AM


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