Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
umitakkaya
 
Posts: n/a
Default Excel buttons to print out on pdf file and printer!!


Hello folks,

I created two buttons in my excel sheet. If I click on button1, it is
supposed to print the sheet on pdf file. If click on button2, it is
supposed to send the print job to the printer.

I am using the following command in my script:

ActiveWindow.SelectedSheets.PrintOut Copies:=1, Collate:=True

which sends the print job to the default printer.

Do you know if there is a way to define the printer I want to use for
the print job in the script?

Umit


--
umitakkaya
------------------------------------------------------------------------
umitakkaya's Profile: http://www.excelforum.com/member.php...o&userid=33955
View this thread: http://www.excelforum.com/showthread...hreadid=538467

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 print a whole excel file in colour when the default is mo Chris C Excel Discussion (Misc queries) 11 March 23rd 06 07:47 AM
Print Excel to MODI Writer? David Nelson Excel Discussion (Misc queries) 0 April 1st 05 03:37 PM
Print Excel to Microsoft Document Image File (MDI) David Nelson Excel Discussion (Misc queries) 1 April 1st 05 02:28 AM
No printer select in excel jj Excel Discussion (Misc queries) 1 March 25th 05 11:34 AM
How do I print a file holder label from Excel to a dox matrix pri. Al_R Excel Discussion (Misc queries) 0 January 5th 05 10:05 PM


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