How to print multiple invoices with unique invoice numbers in one click?

pchlopg

New Member
Joined
Apr 10, 2020
Messages
3
Office Version
  1. 2016
Platform
  1. Windows
I want to print multiple copies and have a unique invoice number on each page printed in cell P4.

For example first print run would start at number 1001 and last numbered page is 1100.

For an instance, when I exported the excel file into pdf it automatically generates 100 pages with 1 invoice per page and with unique invoice numbers each.

Typing each invoice numbers per sheet is very time consuming and I want to know the easiest way to generate it in just one click.

It is not necessarily has to be pdf.. I just don't know what is the best way I can print invoices that changes the numbers automatically page by page.

I am just a beginner and I have no idea with using developer tools / macro in excel. Step by step instructions would be a great help!

Please help, I will be grateful!
 

Excel Facts

What is the shortcut key for Format Selection?
Ctrl+1 (the number one) will open the Format dialog for whatever is selected.
This macro will loop though all your sheets and insert a number in P4 starting at 1001, increasing the number by 1 for each sheet.
VBA Code:
Sub InsertNumbers()
    Application.ScreenUpdating = False
    Dim ws As Worksheet, x As Long: x = 1001
    For Each ws In Sheets
        ws.Range("P4") = x
        x = x + 1
    Next ws
    Application.ScreenUpdating = True
End Sub
 
Upvote 0

Forum statistics

Threads
1,215,003
Messages
6,122,655
Members
449,091
Latest member
peppernaut

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