Loop printing

ba2007ali

New Member
Joined
Oct 1, 2011
Messages
26
Hi sirs:

Can you please help me to find a macro that can loop printing with 45 seconds between the first print and the second

Thanks,
Maher
 

Excel Facts

Will the fill handle fill 1, 2, 3?
Yes! Type 1 in a cell. Hold down Ctrl while you drag the fill handle.
Hi maher,

Can you give more details please?

Alternative post your workbook using megaupload?

Biz
 
Upvote 0
Hi sirs:

Can you please help me to find a macro that can loop printing with 45 seconds between the first print and the second

Thanks,
Maher
Is this what you mean?

<font face=Courier New><br><SPAN style="color:#00007F">Sub</SPAN> PrintWaitPrint()<br>    ActiveSheet.PrintOut<br>    Application.Wait (Now + TimeValue("0:00:45"))<br>    ActiveSheet.PrintOut<br><SPAN style="color:#00007F">End</SPAN> <SPAN style="color:#00007F">Sub</SPAN><br><br></FONT>
 
Upvote 0
thank you Peter so much.
It's Ok but how can I make this macro goes from print 1 to print 2 (until print 20) meaning next to print 2 and next to print 3 so on until print 20? what you provided is great but if this thing can be added I'll appreciate it so much

Thanking you in advance,

Maher
 
Upvote 0
thank you Peter so much.
It's Ok but how can I make this macro goes from print 1 to print 2 (until print 20) meaning next to print 2 and next to print 3 so on until print 20? what you provided is great but if this thing can be added I'll appreciate it so much

Thanking you in advance,

Maher
Try

<font face=Courier New><br><SPAN style="color:#00007F">Sub</SPAN> PrintWaitPrint()<br>    <SPAN style="color:#00007F">Dim</SPAN> p <SPAN style="color:#00007F">As</SPAN> <SPAN style="color:#00007F">Long</SPAN><br>    <br>    <SPAN style="color:#00007F">For</SPAN> p = 1 <SPAN style="color:#00007F">To</SPAN> 19<br>        ActiveSheet.PrintOut<br>        Application.Wait (Now + TimeValue("0:00:45"))<br>    <SPAN style="color:#00007F">Next</SPAN> p<br>    ActiveSheet.PrintOut<br><SPAN style="color:#00007F">End</SPAN> <SPAN style="color:#00007F">Sub</SPAN><br></FONT>


.. or, if you don't mind (or actually want) the 45 second wait after the last print you could just have:

<font face=Courier New><br><SPAN style="color:#00007F">Sub</SPAN> PrintWaitPrint()<br>    <SPAN style="color:#00007F">Dim</SPAN> p <SPAN style="color:#00007F">As</SPAN> <SPAN style="color:#00007F">Long</SPAN><br>    <br>    <SPAN style="color:#00007F">For</SPAN> p = 1 <SPAN style="color:#00007F">To</SPAN> 20<br>        ActiveSheet.PrintOut<br>        Application.Wait (Now + TimeValue("0:00:45"))<br>    <SPAN style="color:#00007F">Next</SPAN> p<br><SPAN style="color:#00007F">End</SPAN> <SPAN style="color:#00007F">Sub</SPAN><br></FONT>
 
Upvote 0

Forum statistics

Threads
1,224,574
Messages
6,179,626
Members
452,933
Latest member
patv

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top