Greetings, Unfortunately, VBA does not have a Print command.
So in order to print, you need to have some "thingy" that does have a Print command - MS Word. If MS Word is installed on the scripting PC, you can access its print functionality to do what you're asking for here. I've posted an example in the script library under General Purpose Examples that shows how to do this. Regards, Thom Thom C. Blackwell Product Manager Boston Software Systems (866) 653-5105 ex 807 www.bossoft.com <http://www.bossoft.com/> Sign <http://www.bostonworkstation.com/customer_center/special_events.aspx> up for my weekly webinar! LEGAL NOTICE Unless expressly stated otherwise, this message is confidential and may be privileged. It is intended for the addressee(s) only. Access to this E-mail by anyone else is unauthorized. If you are not an addressee, any disclosure or copying of the contents of this E-mail or any action taken (or not taken) in reliance on it is unauthorized and may be unlawful. If you are not an addressee, please inform the sender immediately, then delete this message and empty from your trash. From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Stephen R. Smesny Sent: Tuesday, December 18, 2007 9:17 AM To: [email protected] Subject: [Talk] Send log to printer I currently have the following command in my scripts to email log files to the appropriate people. Is there a command that I can use to print the logfile to a specific printer at the end of the script? Thanks, Stephen Smesny SendMail "[EMAIL PROTECTED]", "BBK Log", "The Blood Bank Script has executed. The log is attached.", "[EMAIL PROTECTED]", "Y:\BBK\Script\error.log", "prince.bmhsc.org", "", "" ********************************************************************** The information contained in this electronic communication, and any electronic attachment(s), is CONFIDENTIAL and is intended only for the named recipient(s) above. If the reader of this message is not the intended recipient(s), you are hereby notified that any release of information or distribution of this communication is prohibited by law. If you have received this message in error, or are not the named recipient(s), please immediately notify the sender via reply email and delete this communication. ********************************************************************** This message was scanned with MIMESweeper.
