Purchase Order System - VBA for new worksheet from template with PO number auto generated


New Member
Nov 18, 2013
I am part way through creating a Purchase Order system.

I have so far:
- One workbook
- First worksheet 'Suppliers' is a list of suppliers with all supplier data
- Second worksheet 'Template' is the PO template which uses Data Validate to choose supplier details from a drop down list.

I want to:
- Be able to create a new PO (i.e. create a new worksheet) from the 'Template' via a macro button which will be place on the 'Supplier' worksheet
- Have the date auto fill when the new PO (i.e. new worksheet from 'Template') is created
- Have a new PO number auto-create when a new PO is created (ideally the PO number will begin with the supplier initials e.g. Bunnings PO's will be BUN01, BUN02, BUN03)
- Have a macro button that will automatically save out / open the new PO as a PDF

I know this is a big ask. I have some macro experience but really need some help with this task.

Much appreciated, ooos9272


Well-known Member
Jul 8, 2012
There are companies out there that you can hire to do this kind of project. You are asking for an entire system to be built for you. That is a lot of code that takes hours to accomplish. This is something you should seek out from a company that specializes in this. Also, various off the shelf products/programs do this for you, such as Quickbooks, as an example.

Forum statistics

Latest member

Some videos you may like

This Week's Hot Topics

  • VBA (Userform)
    Hi All, I just would like to know why my code isn't working. Here is my VBA code: [CODE=vba]Private Sub OKButton_Click() Dim i As Integer...
  • List box that changes fill color
    Hello, I have gone through so many pages trying to figure this out. I have a 2020 calendar that depending on the day needs to have a certain...
  • Remove duplicates and retain one. Cross-linked cases
    Hi all I ran out of google keywords to use and still couldn't find a reference how to achieve the results of a single count. It would be great if...
  • VBA Copy and Paste With Duplicates
    Hello All, I'm in need of some input. My VBA skills are sub-par at best. I've assembled this code from basic research and it works but is...
  • Macro
    is it possible for a macro to run if the active cell value is different to the value above it
  • IF DATE and TIME
    I currently use this to check if date has passed but i also need to set a time on it too. Is it possible? [CODE=vba]=IF(B:B>TODAY(),"Not...