ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Printing App (https://www.excelbanter.com/excel-programming/440024-printing-app.html)

Orion Cochrane

Printing App
 
I have a spreadsheet that, when I go to print it, increases a particular
cell's value by one. This works great for printing one copy. I need it to do
this for each copy printed. Ideally, I would like an InputBox prompting the
user to enter the number of desired copies, and it prints a page with the
increased value for each copy. I know I need a Do...Loop statement, but I
can't figure out how to write it. I want the InputBox to be just before the
Do...Loop statement, and I want the Print Dialog Box to not show up.

All of this is in a Workbook_BeforePrint event.

TIA.
--
I am running on Office 2007, unless otherwise stated.

Gord Dibben

Printing App
 
See code at Ron de Bruin's site.

http://www.rondebruin.nl/print.htm#same


Gord Dibben MS Excel MVP

On Fri, 26 Feb 2010 09:55:01 -0800, Orion Cochrane
wrote:

I have a spreadsheet that, when I go to print it, increases a particular
cell's value by one. This works great for printing one copy. I need it to do
this for each copy printed. Ideally, I would like an InputBox prompting the
user to enter the number of desired copies, and it prints a page with the
increased value for each copy. I know I need a Do...Loop statement, but I
can't figure out how to write it. I want the InputBox to be just before the
Do...Loop statement, and I want the Print Dialog Box to not show up.

All of this is in a Workbook_BeforePrint event.

TIA.



Orion Cochrane

Printing App
 
Thanks. The second macro in Ron's page was exactly what I was looking for.
This isn't the first time he's saved me.
--
I am running on Office 2007, unless otherwise stated.


"Gord Dibben" wrote:

See code at Ron de Bruin's site.

http://www.rondebruin.nl/print.htm#same


Gord Dibben MS Excel MVP

On Fri, 26 Feb 2010 09:55:01 -0800, Orion Cochrane
wrote:

I have a spreadsheet that, when I go to print it, increases a particular
cell's value by one. This works great for printing one copy. I need it to do
this for each copy printed. Ideally, I would like an InputBox prompting the
user to enter the number of desired copies, and it prints a page with the
increased value for each copy. I know I need a Do...Loop statement, but I
can't figure out how to write it. I want the InputBox to be just before the
Do...Loop statement, and I want the Print Dialog Box to not show up.

All of this is in a Workbook_BeforePrint event.

TIA.


.



All times are GMT +1. The time now is 10:58 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com