Sequential Pages from only one Sheet

Yodie

New Member
Joined
Oct 15, 2002
Messages
2
IE) How to create "blank" invoice forms from only creating ONE sheet. Such "blank" invoice forms must have sequential numbering on each form printed.
 

Excel Facts

Test for Multiple Conditions in IF?
Use AND(test, test, test, test) or OR(test, test, test, ...) as the logical_test argument of IF.
On 2002-10-16 19:52, Yodie wrote:
IE) How to create "blank" invoice forms from only creating ONE sheet. Such "blank" invoice forms must have sequential numbering on each form printed.

Hi Yodie:

Welcome to the Board!

I am not quite clear on the idea of having blank invoices with numbers -- why? what is the purpose?

In any event, it will be almost like a template -- you will have all the formulas put in, and the Invoice Numbers assigned.

When comes time to use the invoice, all transaction data gets entered in, and then you move on to the next numbered invoice.

I am not sure if this has been any help -- if not explain a little further and let us take it from there.

Regards!

Yogi
 
Upvote 0
I want to create ONE form on ONE page in excel. I want to print this page out 2000 times, with a different "INVOICE #" on each page. I do not want to print one page, then change the number, then print again. I tried using the page number formula in the page header, but when I tell it to print say 2000 pages, I get 2000 pages with page 1 on them. What I want is 2000 pages, numbered 1 to 2000, at a simple click. Is this possible?
 
Upvote 0
You could use some VBA code to do this:

Code:
Private Sub Workbook_BeforePrint(Cancel As Boolean)
    Dim x As Integer
    Dim Copies
    Copies = InputBox("How Many Copies?")
    If Copies = "" Then
        Cancel = True
        Exit Sub
    End If
    Application.EnableEvents = False
    For x = 1 To Copies
        With ActiveSheet
            .PageSetup.LeftHeader = "Invoice No " & x
            .PrintOut
        End With
    Next x
    Cancel = True
    Application.EnableEvents = True
End Sub

To use it, right click the Excel icon to the left of File on the menu and choose View Code. Paste the above into the window on the right. Press Alt+F11 to return to your workbook and click the Print button.
 
Upvote 0

Forum statistics

Threads
1,203,318
Messages
6,054,712
Members
444,743
Latest member
johncon60

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