Print Macro - Double Sided

dwilson38550m

Board Regular
Joined
Nov 21, 2005
Messages
89
Hi,

I have a simple macro that opes up a file then prints the first tab called REVIEW and then the second tab called REVIEW HISTORY. The only problem is that the printer prints on 2 sheets rather than a double sided print. I have adjusted the settings on the printer but no luck. Can the macro be adjusted to do this? Also is there a setting to make this colour?

Thanks in advance

-------------------------------------------------------------------

Sub PrintMultipleSheets()
'
' printmultiplesheets Macro
'

Worksheets("Review").Range("A1:I46").PrintOut Copies:=1, Collate:=True
Worksheets("Review History").Range("A1:I50").PrintOut Copies:=1, Collate:=True


'
End Sub
 

Excel Facts

Links? Where??
If Excel says you have links but you can't find them, go to Formulas, Name Manager. Look for old links to dead workbooks & delete.
go to page setup
when you go file > print there will be an option at the bottom for "page setup" then click options...
should find it somewhere in there. will be greyed out if your printer does not support the function.
 
Upvote 0
and i believe you can record a macro to change these settings to see it in VBA
 
Upvote 0
Thanks, do you know how to do this using vba code so that it prints both worksheets on a double side piece of paper?
 
Upvote 0
Thanks, do you know how to do this using vba code so that it prints both worksheets on a double side piece of paper?

I don't think there is VBA syntax for it but each printer has different settings so record yourself doing it manually via developer tab in the ribbon.
my settings won't be your settings.
tl;dr i'm unsure of a specific syntax to do this that works with every printer and version of excel
mine looks like this if its any help (it has no syntax to change the double sided printing, for myself i have to do that step manually.)

VBA Code:
   Application.PrintCommunication = False
    With ActiveSheet.PageSetup
        .PrintTitleRows = ""
        .PrintTitleColumns = ""
    End With
    Application.PrintCommunication = True
    ActiveSheet.PageSetup.PrintArea = ""
    Application.PrintCommunication = False
    With ActiveSheet.PageSetup
        .LeftHeader = ""
        .CenterHeader = ""
        .RightHeader = ""
        .LeftFooter = ""
        .CenterFooter = ""
        .RightFooter = ""
        .LeftMargin = Application.InchesToPoints(0.7)
        .RightMargin = Application.InchesToPoints(0.7)
        .TopMargin = Application.InchesToPoints(0.75)
        .BottomMargin = Application.InchesToPoints(0.75)
        .HeaderMargin = Application.InchesToPoints(0.3)
        .FooterMargin = Application.InchesToPoints(0.3)
        .PrintHeadings = False
        .PrintGridlines = False
        .PrintComments = xlPrintNoComments
        .PrintQuality = 600
        .CenterHorizontally = False
        .CenterVertically = False
        .Orientation = xlPortrait
        .Draft = False
        .PaperSize = xlPaperLetter
        .FirstPageNumber = xlAutomatic
        .Order = xlDownThenOver
        .BlackAndWhite = False
        .Zoom = 100
        .PrintErrors = xlPrintErrorsDisplayed
        .OddAndEvenPagesHeaderFooter = False
        .DifferentFirstPageHeaderFooter = False
        .ScaleWithDocHeaderFooter = True
        .AlignMarginsHeaderFooter = True
        .EvenPage.LeftHeader.Text = ""
        .EvenPage.CenterHeader.Text = ""
        .EvenPage.RightHeader.Text = ""
        .EvenPage.LeftFooter.Text = ""
        .EvenPage.CenterFooter.Text = ""
        .EvenPage.RightFooter.Text = ""
        .FirstPage.LeftHeader.Text = ""
        .FirstPage.CenterHeader.Text = ""
        .FirstPage.RightHeader.Text = ""
        .FirstPage.LeftFooter.Text = ""
        .FirstPage.CenterFooter.Text = ""
        .FirstPage.RightFooter.Text = ""
    End With
    Application.PrintCommunication = True

i believe you would need an actual API to control the printer options programmatically
hope this clarifies
 
Upvote 0

Forum statistics

Threads
1,214,813
Messages
6,121,706
Members
449,048
Latest member
81jamesacct

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