LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 361
Default Setting printing properties

Tom -

Thanks for the links to the articles. I'll read through them and pull out
what I can use. Thanks for the help.

Carl White

"Tom Ogilvy" wrote:

VB provides a printer object, but VBA does not, so you are pretty much stuck
with 3 options

1) Sendkeys (simulate keystroking a choice in the print setup dialog)
2) Create another instance of the printer with the proper settings in the
windows control panel, and select that.
3) Using the Window API to interact with the printer

This article will give some insights into the 3rd method:
http://msdn.microsoft.com/archive/en...softAccess.asp

The article is about access, but the API portions of the article are the
same.

Here are some other related articles:
http://support.microsoft.com/default...b;en-us;230743
HOWTO: Set Duplex Printing for Word Automation

http://support.microsoft.com/default...b;en-us;190218
HOWTO: Retrieve Settings From a Printer Driver

http://support.microsoft.com/default...b;en-us;180645
FIX: Cannot Change Page Settings During Print Job

http://support.microsoft.com/default...b;en-us;266767
HOWTO: Set Which Printer Is the System Default Printer

--
Regards,
Tom Ogilvy



"Carl" wrote in message
...
I just purchased a new Laserjet 1320tn printer and would like to know if
anyone knows how to access the printer properties thru VBA. I run various
VBA macros when printing reports from several worksheets and would like to
be
able to turn duplex printing on and/or off as well as select which tray
I'm
pringing from.

All I can find in the VBA help is the ActivePrinter which I use to select
the printer I want to use and ActiveWindow.SelectedSheets.Printout to set
some options (copies, collate, etc.).

Any help would be greatly apprecitaed.

Carl White




 
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
Setting Tab Properties in Excel beldarski Excel Discussion (Misc queries) 2 October 28th 05 06:10 AM
Setting properties of userform controls with VBA Dave[_52_] Excel Programming 1 December 22nd 04 09:27 PM
Setting properties to combobox Stefan[_6_] Excel Programming 2 September 16th 04 12:21 PM
Setting up default chart properties CraigB Excel Programming 1 August 24th 04 04:34 AM
setting properties for shapes Hawk Excel Programming 3 May 21st 04 07:31 PM


All times are GMT +1. The time now is 05:32 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"