Printing an unknown amount of pages

dexter30

New Member
Joined
Sep 14, 2011
Messages
6
Hi.

I have a huge batch of documents. On every page of every batch I have to print a stamp (image) and a sequential number inside the stamp.

This part I was able to solve by inserting the image and the starting number centered in the rightmost cell of the first row. Then I duplicated this row 1000 times (cause no document has more than this amount of pages), increasing the number by 1 and mantaining the image. Then I inserted (automatically via macro) a page break on every row.

This way I can print up to 1000 times a page with a stamp and a sequence number.

The problem is, every batch of documents has a diferent and unknown beforehand number of pages. I have to count how many pages there are
so I can go to Print Window and set this amount of copies to be printed.

I wish there was a way to do it without having to count the pages before printing. One way would be to set copies to a high number (1000 or so), and put the document alone in the printer tray. After printing the last
page (e.g 85) the printer would issue the message "out of paper". Then you would have to cancel the print. But this way is unelegant and nothing practical.

Maybe there is a better way of doing this?

Any ideas will be welcome.

Thanks.
 
It makes me think of real life printing presses ... which *would* stop when the paper is out.

Printers are really separate devices from Excel. I know almost nothing about them. It sounds like you'd have to intercept the print queue and clear it when the printer reports that it is out of paper, or just arbitrarily do so after a set period of time. Not very pretty either. I think I'd probably be satisfied with ad hoc solutions (such as just guessing how many pages to print). If you do it a lot you might be able to establish guidelines for a half-way decent count based on the height of the stack.
 
Upvote 0

Excel Facts

How to change case of text in Excel?
Use =UPPER() for upper case, =LOWER() for lower case, and =PROPER() for proper case. PROPER won't capitalize second c in Mccartney

Forum statistics

Threads
1,224,588
Messages
6,179,743
Members
452,940
Latest member
rootytrip

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