+ Reply to Thread
Results 1 to 6 of 6

same template on each new sheet in a workbook?

  1. #1
    Registered User
    Join Date
    02-01-2022
    Location
    Sydney, Australia
    MS-Off Ver
    MS Office 365
    Posts
    3

    same template on each new sheet in a workbook?

    G'day all,

    My first post here so hopefully someone can steer me in the right direction. While I am laying in bed recovering from a fight with an angle grinder, I decided to sort out my excel based invoicing for 2022.

    Long story short,

    I want a workbook where each new sheet loads as my excel invoice template. Second to that, I'd like the invoice number to advance by one on each new sheet.

    Is this within the realms of possibility? If so, how would I go about adding this functionality to a workbook?

    Sincerely,

    Injured Ben

  2. #2
    Forum Expert dflak's Avatar
    Join Date
    11-24-2015
    Location
    North Carolina
    MS-Off Ver
    365
    Posts
    7,926

    Re: same template on each new sheet in a workbook?

    This is actually quite simple to do, but if you can provide us with a sample workbook with a copy of your invoice template it would help a lot.
    One spreadsheet to rule them all. One spreadsheet to find them. One spreadsheet to bring them all and at corporate, bind them.

    A picture is worth a thousand words, but a sample spreadsheet is more likely to be worked on.

  3. #3
    Registered User
    Join Date
    02-01-2022
    Location
    Sydney, Australia
    MS-Off Ver
    MS Office 365
    Posts
    3

    Re: same template on each new sheet in a workbook?

    That sounds fair enough. Here is a redacted version of my invoice template.
    Attached Files Attached Files

  4. #4
    Forum Expert torachan's Avatar
    Join Date
    12-27-2012
    Location
    market harborough, england
    MS-Off Ver
    Excel 2010
    Posts
    4,313

    Re: same template on each new sheet in a workbook?

    Surely you would be better to use a single template with the contents data saved in a separate audit trail sheet, you can then save and print to a pdf.
    Torachan,

    Mission statement; Promote the use of Tables, Outlaw the use of 'merged cells' and 'RowSource'.

  5. #5
    Registered User
    Join Date
    02-01-2022
    Location
    Sydney, Australia
    MS-Off Ver
    MS Office 365
    Posts
    3

    Re: same template on each new sheet in a workbook?

    haha probably. It's only a very small handyman business, so the grand plan is for an entire financial years worth of invoices to sit as a collection of sheets, with a summary sheet at the end of the year that pulls data from each of the invoices in previous sheets. For now, how do I get the invoice number to advance for each new sheet, and for each new sheet to automatically display the invoice template? I'm really only a very novice Excel user.

  6. #6
    Forum Expert dflak's Avatar
    Join Date
    11-24-2015
    Location
    North Carolina
    MS-Off Ver
    365
    Posts
    7,926

    Re: same template on each new sheet in a workbook?

    I've done a similar kind of application before.

    It starts with the control panel. I use a sheet called Control Panel to contain controls to download data, run macros and do other scratch calculations.

    Don't mess with any of the calculations in Column B. Next Invoice keeps the running total for the invoice and the next line in the database to accept data.

    All you have to do is click on the Create Invoice Button. This copies the Invoice Template sheet to a new sheet with the name of the invoice.

    I modified the Invoice Template with some data validation. For example, you can only enter a date if it is today or earlier. I applied some cell formatting (like currency) and I protected the sheet. You can only enter data into cells that you should be entering data into. Things like the date and invoice number are in locked cells. These are filled in by the program.

    Fill out the invoice sheet and then click on the Post Invoice Button. This creates a PDF file in the same directory with wherever you save this spreadsheet. The Button does not print in this copy.

    When it is done, the invoice sheet you just filled out is deleted from the workbook.

    Although you did not ask for it, I threw in a database function. It "scrapes" the invoice before downloading it. It records the date, invoice number, Bill to information, Amount and due date. It also has a flag to indicate if the invoice has been paid. It comes in as FALSE and you can update this manually as invoices are paid. The table is set up so you can use pivot tables to analyze it for open / closed invoices, jobs per month, dollar amount per month, etc.

    The last thing the publish subroutine does is increment the invoice number counter.

    Eventually the directory will fill up with PDF files for invoices. You may want to archive them (move them to another directory). You might want to move paid invoices to a paid directory, When you get to that point, post again. The database will help with that
    Attached Files Attached Files

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Copy and Move Template Sheet To Last Sheet in Workbook
    By Chris1976 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 11-17-2020, 04:36 PM
  2. Replies: 2
    Last Post: 02-13-2015, 10:44 AM
  3. [SOLVED] Open template in every new sheet, same workbook
    By cizzor in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-12-2014, 02:04 AM
  4. Macro, copy UNLOCKED cell range of sheet in open workbook to workbook template
    By NicksDad in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 08-31-2012, 11:18 AM
  5. [SOLVED] Multiple copy of the same sheet on new workbook (template like)
    By flordix in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-06-2012, 01:12 AM
  6. How do I : Import Sheet from Template Excel Workbook? (VBA)
    By cwg999 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 12-12-2011, 11:57 AM
  7. new sheet created 'on the fly' from template in same workbook - H.
    By MrT in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 04-10-2005, 04:06 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1