Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 6
Default VBA to change duplex setting?

We have one spreadsheet that has about 15 tabs. I would like to add to my
macro some code that would print some of these spreadsheets duplex and some
simplex. create a macro to print these 15, with some being printing simplex
and others printing duplex. The printer is set up to do duplex as default.
I don't want the user to have to change printer properties before printing
each sheet. So is there a function I can put in my macro like
"printeroptions.duplex.enable" and "printeroptions.duplex.disable" that I
would put right before "ActiveWorkbook.ActiveSheet.PrintOut" that would allow
me to switch like this? On the user's side, all I want him to have to do is
start the macro.

Thank you,
jerrybdot
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,819
Default VBA to change duplex setting?

The supported options are

Sub PrintOut([From], [To], [Copies], [Preview], [ActivePrinter],
[PrintToFile], [Collate], [PrToFileName], [IgnorePrintAreas])

jerrybdot wrote:

We have one spreadsheet that has about 15 tabs. I would like to add to my
macro some code that would print some of these spreadsheets duplex and some
simplex. create a macro to print these 15, with some being printing simplex
and others printing duplex. The printer is set up to do duplex as default.
I don't want the user to have to change printer properties before printing
each sheet. So is there a function I can put in my macro like
"printeroptions.duplex.enable" and "printeroptions.duplex.disable" that I
would put right before "ActiveWorkbook.ActiveSheet.PrintOut" that would allow
me to switch like this? On the user's side, all I want him to have to do is
start the macro.

Thank you,
jerrybdot


  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 6
Default VBA to change duplex setting?

Thanks. Yes, I know the PrintOut options but those do not give me what I
need. I was looking for some function/method/property . . . that would allow
me to switch between duplex and simplex from within a macro.
"Bob I" wrote:

The supported options are

Sub PrintOut([From], [To], [Copies], [Preview], [ActivePrinter],
[PrintToFile], [Collate], [PrToFileName], [IgnorePrintAreas])

jerrybdot wrote:

We have one spreadsheet that has about 15 tabs. I would like to add to my
macro some code that would print some of these spreadsheets duplex and some
simplex. create a macro to print these 15, with some being printing simplex
and others printing duplex. The printer is set up to do duplex as default.
I don't want the user to have to change printer properties before printing
each sheet. So is there a function I can put in my macro like
"printeroptions.duplex.enable" and "printeroptions.duplex.disable" that I
would put right before "ActiveWorkbook.ActiveSheet.PrintOut" that would allow
me to switch like this? On the user's side, all I want him to have to do is
start the macro.

Thank you,
jerrybdot



  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,819
Default VBA to change duplex setting?

That "option" isn't supported. You may effect the same result by
creating one instance of the printer with Duplexing "On", and one
instance with it set to "Off". Then you may select the desired one to
print to in your VBA.

jerrybdot wrote:

Thanks. Yes, I know the PrintOut options but those do not give me what I
need. I was looking for some function/method/property . . . that would allow
me to switch between duplex and simplex from within a macro.
"Bob I" wrote:


The supported options are

Sub PrintOut([From], [To], [Copies], [Preview], [ActivePrinter],
[PrintToFile], [Collate], [PrToFileName], [IgnorePrintAreas])

jerrybdot wrote:


We have one spreadsheet that has about 15 tabs. I would like to add to my
macro some code that would print some of these spreadsheets duplex and some
simplex. create a macro to print these 15, with some being printing simplex
and others printing duplex. The printer is set up to do duplex as default.
I don't want the user to have to change printer properties before printing
each sheet. So is there a function I can put in my macro like
"printeroptions.duplex.enable" and "printeroptions.duplex.disable" that I
would put right before "ActiveWorkbook.ActiveSheet.PrintOut" that would allow
me to switch like this? On the user's side, all I want him to have to do is
start the macro.

Thank you,
jerrybdot




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
How do I change Automatic sum setting from 17.5% to 15% JC Excel Worksheet Functions 1 November 29th 08 04:42 PM
change from left-to-right as default setting Rauf A. Khokhar Setting up and Configuration of Excel 0 June 11th 08 09:48 AM
change language setting using VBA code ub Excel Worksheet Functions 0 April 3rd 07 05:34 PM
Change the default $ setting to ‚¬ on invoice template? Ronan Excel Discussion (Misc queries) 1 September 13th 06 11:16 PM
Change radians - degrees setting David Excel Discussion (Misc queries) 5 March 16th 05 01:55 AM


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