Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
RWG RWG is offline
external usenet poster
 
Posts: 1
Default Schedule Print Excel Document

I have a Excel report I need to print automatically every morning, generally
before I get in. I can use the scheduler to open the spreadsheet, I don't
need to update the data, just print it. Don't even need to open the
spreadsheet unless necessary. Is there a command line switch I can use to
just print the document without leaving the document open. Sort of like if
you right click and select print on a document.
  #2   Report Post  
Posted to microsoft.public.excel.programming
JNW JNW is offline
external usenet poster
 
Posts: 480
Default Schedule Print Excel Document

You can place in the Workbook_Open event a command to print and then close
the workbook. Something like the following in the ThisWorkbook part of the
code:

Private Sub Workbook_Open()
ActiveWorkbook.PrintOut Copies:=1, Collate:=True 'prints entire workbook
Application.Quit 'closes excel
End Sub

Only thing is that you would have to either digitally sign the file so you
wouldn't have to approve macros on opening, or set security to low.




"RWG" wrote:

I have a Excel report I need to print automatically every morning, generally
before I get in. I can use the scheduler to open the spreadsheet, I don't
need to update the data, just print it. Don't even need to open the
spreadsheet unless necessary. Is there a command line switch I can use to
just print the document without leaving the document open. Sort of like if
you right click and select print on a document.

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 schedule a task to print a document Hershmab Excel Discussion (Misc queries) 11 May 13th 09 02:27 PM
Excel document print Tanu Gulati[_2_] Excel Discussion (Misc queries) 3 March 1st 07 02:55 PM
why won't excel print my document? Matt Excel Discussion (Misc queries) 1 September 8th 06 04:37 PM
how do i rotate a document or print small document on envelope crystal New Users to Excel 2 March 23rd 06 03:52 PM
How do I print the name of a tab on an Excel document? TW Excel Discussion (Misc queries) 5 March 16th 06 10:09 AM


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