Quantcast
Channel: VBForums
Viewing all articles
Browse latest Browse all 42215

MsOf10 VBA duplex printing of specific sheets in workbook?

$
0
0
Hello,

I want to print certain sheets in a workbook in singel sided and certain sheets in Duplex all in one operation/button.

I cannot find anything on the internet giving a simple code for this. This should however apply to the default printer and not a specific one.

I tried the following but all sheets still come out singel sided:

Code:

Sub printpagekjop()
 ' Print out the Sheets
 If Duplex = True Then SetPrinterDuplex.PrinterName.Default
 Duplex = False
 Sheets("Ordremal").PrintOut
 Duplex = True
 Sheets("Kjøpsavtale").PrintOut
 Duplex = False
 Sheets("Serviceavtale").PrintOut
 Duplex = False
 Sheets("Ordreoversikt").PrintOut
 End Sub


Any suggestions here would be greatly appreciated:)

Viewing all articles
Browse latest Browse all 42215

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>