![]() |
![]() |
|
|||||||
| Excel Questions All Excel/VBA questions - formulas, macros, pivot tables, general help, etc. Please post to this forum in English only. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
New Member
Join Date: Mar 2002
Location: Madison, Georgia
Posts: 2
|
I use a macro to automatically print or e-mail a workbook:
Application.OnTime TimeValue("06:55:00"), "Print_Out", where "Print_Out" is a macro that actually does the printing: ActiveWindow.SmallScroll ToRight:=-1 ActiveWindow.SmallScroll Down:=-1 Range("B2:P32").Select ActiveWindow.SelectedSheets.PrintOut , Collate:=True The problem is that I get multiple copies of the same book, but I have specified only 1 in the print macro. It does the same thing when I e-mail, it spits out say 4 copies of the same thing. Any help is so greatly appreciated ! [ This Message was edited by: sparks on 2002-03-23 06:25 ] |
|
|
|
|
|
#2 |
|
MrExcel MVP
Join Date: Feb 2002
Location: Monterrey, Mexico
Posts: 1,433
|
Post your "Print_Out" code
|
|
|
|
|
|
#3 |
|
MrExcel MVP
Join Date: Feb 2002
Location: Bogota, Colombia
Posts: 11,927
|
Try this:
ActiveWindow.SelectedSheets.PrintOut Copies:=1, Collate:=True |
|
|
|
|
|
#4 |
|
New Member
Join Date: Mar 2002
Location: Madison, Georgia
Posts: 2
|
I tried:
ActiveWindow.SelectedSheets.PrintOut Copies:=1, Collate:=True Still printed out 2 copies. Will this macro run as many times as it can in 1 second ?? Need to include something to tell it to run the macro at the time specified, only 1 time. |
|
|
|
|
|
#5 |
|
New Member
Join Date: Mar 2002
Location: Holland
Posts: 8
|
Put a wait-command in your print_out macro to make it wait for at least 1 second.
Ton |
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|