Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / New Users / June 2005

Tip: Looking for answers? Try searching our database.

Selecting a printer

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Rob - 29 Jun 2005 13:36 GMT

I have a small macro that is attached to a print button on sheet 1 that
prints the graphs on sheet 2.

My problem is that I wish to print to a printer that is not the default
printer.   Can the printer be selected automatically when the macro runs.

This is what I have in the macro at present and the name of the printer is "

Sub Print_Graphs()
   Sheets("Graphs").Select
   ActiveWindow.SelectedSheets.PrintOut Copies:=1, Collate:=True
   Sheets("Data Sheet").Select
   Range("B18").Select
End Sub
Don Guillett - 29 Jun 2005 13:44 GMT
try this WITHOUT selecting the sheet

Application.ActivePrinter = "Xerox Phaser 6200B on LPT1:"
Sheets("Graphs").PrintOut Copies:=1
Signature

Don Guillett
SalesAid Software
donaldb@281.com

>
> I have a small macro that is attached to a print button on sheet 1 that
[quoted text clipped - 11 lines]
>     Range("B18").Select
> End Sub
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.