Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5
Default Printing to Local Printer and the not the default printer.

Can someone help me in the code of sending my sheet to a local printer
and not the default printer which is our network printer. Users need
to send to the local printer, but the network is their default and we
don't want them making changes to their default printer.

Thanks

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7
Default Printing to Local Printer and the not the default printer.

On 13 ruj, 14:53, wrote:
Can someone help me in the code of sending my sheet to a local printer
and not the default printer which is our network printer. Users need
to send to the local printer, but the network is their default and we
don't want them making changes to their default printer.

Thanks


Sub your_printing
Dim defPrinter As String
defPrinter = Application.ActivePrinter
Application.ActivePrinter = "YOUR_LOCAL_PRINTER" '- this is a name of
your local printer
'Your source for printing
'....
'....
Application.ActivePrinter = defPrinter
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
members on my network printer not able to print to default printer smeheut Excel Discussion (Misc queries) 0 June 18th 07 06:42 PM
Printer Multiple Worksheets with a particular Printer Setting PP[_2_] Excel Worksheet Functions 0 March 14th 07 02:02 PM
Printing from default printer Susan Excel Discussion (Misc queries) 1 February 1st 06 04:23 PM
Send printer escape commands to a printer using VBA mikeburg[_41_] Excel Programming 3 October 6th 05 07:36 PM
Default printer peterG Excel Programming 2 January 15th 04 06:06 PM


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

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"