command line script for printing MS Excel 2000 document.
Hi
There is one way - go to ThisWorkBook in VBE and paste the following code Private Sub Workbook_Open() Range("$A$1:$M$30").PrintOut Copies:=1, Collate:=True Application.DisplayAlerts = False Application.Quit End Sub Change the range to suit your print area and then schedule a task to open that Excel file. So when it opens it will print it then close it (without saving). This is untested code as I do not have printer at the moment. If you want open the workbook without printing the code hold down Shift before opening. Tom |
All times are GMT +1. The time now is 11:40 AM. |
Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com