ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Excel invoice number (https://www.excelbanter.com/excel-discussion-misc-queries/123647-excel-invoice-number.html)

[email protected]

Excel invoice number
 
Hello,

I need some assistance with a formula to create an incremental invoice
number. The invoice number has to increment every other page when
printed. I'm trying to print some carbon copy work orders/invoices.

Appreciate the help.

Thanks,
Josh


Otto Moehrbach

Excel invoice number
 
Josh
You will need a macro to do that. Something like the following. Change
the range to print to suit what you have. This macro increments A1 by 1 and
prints the range. As written it will do this 100 times. HTH Otto
Sub IncAndPrint()
Dim c As Long
For c = 1 To 100
Range("A1:G50").PrintOut
[A1].Value = [A1].Value + 1
Next c
End Sub
wrote in message
ups.com...
Hello,

I need some assistance with a formula to create an incremental invoice
number. The invoice number has to increment every other page when
printed. I'm trying to print some carbon copy work orders/invoices.

Appreciate the help.

Thanks,
Josh





All times are GMT +1. The time now is 03:47 PM.

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