Portfolio / Invoice generator

  • Excel
  • VBA
  • Outlook

Invoice generator

One button turns a sheet of finished jobs into a stack of invoices: one per customer, saved as PDFs, with the email drafted. Rows missing something important get skipped and flagged instead of going out wrong.

Press Create. I’ll make the invoices, you go get paid.

A real-life example

Meet Brenda, the office manager at an HVAC company.

At the end of every week she opens the invoice template, types in each finished job, saves a PDF, writes an email, attaches it and sends it. One by one. With 30 jobs a week, it eats her whole Friday afternoon, and now and then an invoice goes out with the wrong address.

Example scenario: the people and businesses on this page are made up.

Before

  • Typing each job into the invoice template
  • Saving, attaching and emailing one at a time
  • A whole Friday afternoon, every week
  • Wrong or missing details slipping through

After

  • Every invoice created in one run
  • PDFs saved and emails drafted automatically
  • Rows missing details flagged, not sent
  • Invoices out the same day the work is done

Try it yourself

jobs_october.xlsm Sample data
Finished jobs
RowJobCustomerEmailAddressServiceHoursRatePartsResult

Invoices folder · Email draftsExcel · VBA

A simulation of Excel running in your browser, with sample jobs and customers.

What it’s worth

What this could be worth to you

Invoices out the same day means you get paid sooner, without the Friday afternoon.

Example numbers to start you off. Move the sliders to match your business. These are estimates, not a guarantee or financial advice; your results depend on your situation.

Hours back per year
Value of that time
Caught or recovered per year
Total value per year
Pays for itself in
3-year value, after the cost

The problem

Creating invoices one at a time from a template is slow, and every manual copy is a chance to put the wrong amount or address on a bill.

The solution

A macro that loops through the finished-jobs sheet, fills the invoice template for each customer, saves it as a PDF, and creates an Outlook draft with the PDF attached. Any row missing an address is skipped and flagged; missing emails get printed instead.

How it's built

  1. ReadGo through every finished job on the sheet.
  2. CheckSkip and flag rows missing key details.
  3. FillPut each job into the invoice template.
  4. SaveExport each invoice as its own PDF.
  5. EmailDraft the email with the PDF attached.

The core loop in VBA:

For r = 2 To lastRow
    If Len(jobs.Cells(r, "D").Value) = 0 Then
        jobs.Cells(r, "J").Value = "Skipped: no address"
    Else
        FillTemplate tmpl, jobs.Rows(r)
        pdf = folder & "\INV-" & invNo & "_" & jobs.Cells(r, "B").Value & ".pdf"
        tmpl.ExportAsFixedFormat xlTypePDF, pdf
        If Len(jobs.Cells(r, "C").Value) > 0 Then DraftEmail jobs.Cells(r, "C").Value, pdf
        invNo = invNo + 1
    End If
Next r

What it makes possible

  • Invoices out the same day, so you get paid sooner
  • No more copy-paste mistakes on bills
  • Friday afternoons back

Skills shown

  • VBA
  • Excel automation
  • PDF export
  • Outlook automation
  • Data validation
Want this for your business?

Get invoices out the door faster

I’ll set it up with your template and your job sheet.

Starting prices are for smaller projects. Bigger or more complex jobs are priced by scope: how much there is and how long it takes.