Excel - How to Auto Generate Next Invoice Number: Episode 1505

Поделиться
HTML-код
  • Опубликовано: 26 июл 2024
  • Microsoft Excel Tutorial: How do I generate the next Invoice Number in an Excel invoice?
    PLEASE - if you need to save as PDF or if you alphanumeric invoice numbers, read through the FAQ at www.mrexcel.com/news/next-inv.... Your question has already been answered many times in the comments below.
    New on October 16 2013 - a follow-up video, episode 1808 shows how to add an automatic Invoice Register to this code. See • Excel - Create an Invo...
    Welcome to the MrExcel podcast, episode 1505 - Next Invoice Number. In this episode, we will be discussing how to generate the next invoice number in Excel. This is a common question that many Excel users have, and I am here to provide a simple solution.
    To start off, we will be using an invoice template from Office Online. There are many templates to choose from, so feel free to pick one that suits your needs. Once you have opened the template, make sure to customize it with your company information. Take note of where the invoice number is located, as we will need this information for our macro.
    Next, we will need to save the template as a Macro-Enabled Workbook. This will allow us to use macros to generate the next invoice number and save previous invoices. Don't worry if you are not familiar with macros, I will guide you through the process step by step.
    Now, let's move on to the macro language. Don't be intimidated, it's just a few lines of code. We will create two macros - one to generate the next invoice number and another to save the previous invoice. Make sure to customize the code with the location of your invoice number and the range of cells you want to clear.
    To make it easier to run the macros, we will assign them to shapes on the sheet. This way, all you have to do is click on the shape to generate the next invoice number or save the previous invoice. It's that simple!
    In just a few lines of code, we have created a system to generate the next invoice number and save previous invoices. This will save you time and effort in the long run. Thank you for tuning in to this episode of the MrExcel podcast. Don't forget to subscribe for more Excel tips and tricks. See you next time!
    Buy Bill Jelen's latest Excel book: www.mrexcel.com/products/latest/
    You can help my channel by clicking Like or commenting below: www.mrexcel.com/like-mrexcel-...
    Table of Contents
    (0:00) Introduction & Welcome to Excel Next Invoice Number
    (0:15) Downloading an Invoice from Office Online
    (0:40) Remember where the invoice number cell is
    (1:00) Save as Macro-Enabled Workbook
    (1:25) Switch to the VBA Editor with Alt+F11
    (1:45) NextInvoice Macro
    (2:20) Clearing out old data in invoice
    (2:45) Using .ClearContents
    (2:57) Running the macro from a Shape
    (3:34) Running the code the first time
    (3:44) Save each invoice before clearing
    (5:05) Make sure to save before filling in invoice
    (5:44) Clicking Like really helps the algorithm
    #excel #microsoft #tutorial #excelinvoice
    This video answers these common search terms:
    how to auto number your invoices in excel
    how to add invoice number in excel
    how to create an invoice number in excel
    how to insert new invoice number excel
    how to auto generate invoice number in excel
    how to automatically generate invoice number in excel
    how to create an invoice in excel for free
    how to create an automated invoice in excel
    how to create an invoice in excel youtube
    how to create invoice number in excel
    how to generate an automatic invoice number in excel
    create an invoice from excel spreadsheet
    how to create an automatic invoice in excel
    how to get excel to automatically generate invoice number
    how to create invoice in excel with formula
    how to automatically populate an excel invoice
    creating a invoice in excel
    excel making an invoice
    how do i create an invoice in excel
    how to build an invoice in excel
    how to create a buiness invoice with microsoft excel
    how to create a custom invoice in excel
    how to create a invoice template in excel
    how to create an excel invoice
    how to download an invoice template from excel
    The Question: "How do I generate the next Invoice Number?" Microsoft Office Online offers a great number of Invoice Templates. However, none of those templates has a Macro to pull the next Invoice Number. Today, in Episode #1505, Bill shows us how to 'Macro Enable' our Workbook and then create a short VBA Code routine to automatically generate Invoice Numbers with the press of a mouse button.
    Note: A similar discussion happened in episodes 742-745. You might want to review those videos as well, as they go the extra step of creating an add-in.
    MrExcel.com - Your One Stop for Excel Tips and Solutions. Visit us today!
    Join the MrExcel Message Board discussion about this video at www.mrexcel.com/board/threads...

Комментарии • 1 тыс.

  • @MrXL
    @MrXL  6 лет назад +9

    If you like this video, please consider subscribing & click the bell icon.
    If you need to save as PDF or if you have alphanumeric invoice numbers, read through the FAQ at www.mrexcel.com/news/next-invoice-number/

    • @raghavanrsri
      @raghavanrsri 6 лет назад

      It's a very helpful video

    • @lamascaratrip5798
      @lamascaratrip5798 6 лет назад

      i still getting bug errors even when i copy it from your link

    • @Ryan-fc9hf
      @Ryan-fc9hf 5 лет назад

      how to edit the prior invoice?

    • @ronaivanverga6027
      @ronaivanverga6027 2 года назад

      How to apply the same invoice number macro command for cell range with text??

  • @JWallaceDesignsLLC
    @JWallaceDesignsLLC 8 лет назад +4

    YES IVE FINALLY CONQUERED THE EXCEL AUTO INVOICE NUMBER!!!!

  • @samualwilliamson1187
    @samualwilliamson1187 4 года назад

    I really like you're style of teaching. You're enthusiastic and you highlight key process by restating them. It works for me!

  • @kathleen6836
    @kathleen6836 2 года назад

    This was incredibly helpful to me three years ago, and it is still as helpful to me now when I needed it again. Thank you so much for the clear instructions on how to do excel magic!

  • @faalsa.oficial
    @faalsa.oficial 9 лет назад +9

    how to save as pdf or print the sheet and then clear it instead of savong it as excel and clearing..,. Pkease Please Please Tell me...

  • @Heidoom
    @Heidoom 9 лет назад +10

    Hi,
    This video is great ao thank you but i am having trouble as I am using an alphanumberic number "SS15001" and would like it to go to "SS15002".
    How do I do this please?

    • @BahadurAli
      @BahadurAli 5 лет назад

      Range("F4").Value = "INV" & Range("I1").Value +1

    • @dysontang3935
      @dysontang3935 4 года назад

      Hi Heidi, did you find an answer to your question? If you do, mind share it with me?

    • @Tej_Tech
      @Tej_Tech 2 года назад

      I have same concern

    • @strawberry1524
      @strawberry1524 2 года назад +1

      @@Tej_Tech put your number only on the box,
      Ex: SS1001
      Put the number on the box, 1001
      Range("cell"), Value = "SS" & Range ("cell"). Value + 1

  • @daisysmalios1876
    @daisysmalios1876 9 лет назад

    Thank you so very much Bill for doing this video I'm so glad I found this! you have totally made my day. I did get a little stuck but scrolling through the comments I found someone else with the same problem and was able to fix it. Thank you Thank you Thank you!!

  • @duanegarnett3979
    @duanegarnett3979 6 лет назад

    By faaaaar the easiest I've seen so far! Been battling with this for ages! I just assigned macro to my company logo instead of a shape. Well done and thanks MrExcel

    • @duanegarnett3979
      @duanegarnett3979 6 лет назад

      is it a common thing for the SaveCopy part to save a copy and throw out the formatting? Font and colours gone all weird in the copy. Saving from .xlsm to .xlsx. Excel 2016

  • @jeffstafford4232
    @jeffstafford4232 9 лет назад

    Thanks Bill ,
    I have asked quite a few people "how". And the first day I had Cortana she asked me if there was "anything she could do for me". Without hesitation I replied " Please show me how to generate an invoice number in excel"!Cortana directed me to your videos and on my first attempt I am now creating invoices faster and actually properly saved (IN ORDER) and a bonus being cleared and ready to crank out another! I admit a tinge of embarrassment at having manually filled fields and customer info for so long ,I had my own format and just "saved as " usually a customers name . Now they are all in order and easy to find. Embarrassment is easily concealed under the pride knowing I've done this all myself !
    I have been attempting to present a professional image one keystroke at a time and with your help And tips on properly utilizing excel I am now closer than I've ever been !
    Thanks sincerely, ...Jeff

  • @oneunknownsinger
    @oneunknownsinger 11 лет назад

    Awesome, thanks - I was able to get it to work! You are the man to go to for Excel learning. Learned a lot.

  • @dooyouevenliftbro8078
    @dooyouevenliftbro8078 4 года назад

    Thanks for the extra details. I got more out of it than I expected. GJ👏

  • @MSYANG82
    @MSYANG82 11 лет назад

    I Finally fix it..thanks..I love it how you show step by step. This is my first one that I am creating. Keep up the good work!

  • @jamesperry3837
    @jamesperry3837 10 лет назад

    Blessings, Bill. That was simply marvellous.

  • @janeo14
    @janeo14 4 года назад +1

    im so happy i want to cry. why did i just see this now?! after 5 years of asking IT friends to do this for me T.T none of them was able to figure this out!

  • @TarekJamil
    @TarekJamil 9 лет назад

    Thanks for your work Bill. I'm a big fan :)

  • @mohameddesouki263
    @mohameddesouki263 11 лет назад

    thank you v much Mr bill it was useful and i was search for this about two month ago, really from my deep heart thank you

  • @tonytouch699
    @tonytouch699 10 лет назад

    Thanks bill. Great Help. Your tutorials are really easy to follow. Much appreciated

  • @AbdallahNofan
    @AbdallahNofan 11 лет назад

    Wow, I actually got it to work again. At first I didn't know what I was doing but then I modified the extension from .xlsx to .xlsm and added the FileFormat:=xlOpenXMLWorkbookM­acroEnabled like you told me to and it's all back again. Bill, your tutorials are amazing, and I've learned so much excel because of them.
    Thank you so much!!!

  • @bcgnr
    @bcgnr 9 лет назад

    Dear Bill Jelen.. thanks a lot for your help, it was my long time search to solve this issue. its working fine.thanks a lot. expecting more from you. God bless you dear ....Thanks

  • @TurkiyeCumhurbaskani
    @TurkiyeCumhurbaskani 12 лет назад +1

    Thank you, I did not know this and now I can have invoices and next invoice for my customers!!

  • @dkumarjogia
    @dkumarjogia 9 лет назад

    Thanks Bill. Its working. Have a great day. Thanks for your support.

  • @kimcruz3889
    @kimcruz3889 3 года назад

    This is an actual informative tutorial, thank you so much!!!

  • @LoraineEdwards
    @LoraineEdwards 9 лет назад

    Great lesson - came at the right time! Thanks!

  • @elcchoo
    @elcchoo 11 лет назад +1

    Thks Bill! You have been a great help! Cheers!

  • @TheFartmastr
    @TheFartmastr 11 лет назад

    hey Bill, thanks man for this 10 simple lines of code, i saved so much time with this, Appreciated!
    Thank you.

  • @traceyschuette5324
    @traceyschuette5324 11 лет назад

    Thanks I never even noticed the extra space, feel so silly, but you are really Great

  • @cubanhack3r
    @cubanhack3r 8 лет назад

    Thank you for your help! truly an awesome instructor...!

  • @suyogdeorukhakar7843
    @suyogdeorukhakar7843 9 лет назад

    its really helpful. I implemented at my end. Thank you.

  • @unitedworldcare9497
    @unitedworldcare9497 4 года назад

    Woooooow!
    I really surprised. Your do a great job. It is working for me. Thank you so much

  • @lepoopoo
    @lepoopoo 8 лет назад

    Very helpful. Thanks, Bill!

  • @Dupton-vh1lk
    @Dupton-vh1lk 10 лет назад

    FANTASTIC! Thank you so much and you are awesome!

  • @traceyschuette5324
    @traceyschuette5324 11 лет назад

    I just want to say Thank you so much for all your help. It is work Great :)

  • @ecoenergyheatingandcooling6991
    @ecoenergyheatingandcooling6991 7 лет назад

    Great Info. I was able to do it, it works pretty good. Thanks

  • @littlepeky
    @littlepeky 4 года назад

    I am so happy i found this video thank you very much

  • @mattrubenstein9368
    @mattrubenstein9368 10 лет назад

    Hi Bill,
    Great video. It has been very helpful as I'm a beginner and just getting started.
    I am getting a Error 1004. I made sure to copy the code exactly as detailed. Here is the line highlighted:
    ActiveWorkbook.SaveAs NewFN, FileFormat:=XLOpenXMLWorkbook
    I've tried different file format codes I found online and made sure the option in Excel 2010 are set to all VBA. I also checked my Trust Center to make sure I had the correct boxes checked. Thanks for your help.

  • @TurkiyeCumhurbaskani
    @TurkiyeCumhurbaskani 12 лет назад

    Thanks man I copied that line you wrote and it worked, I apreciated!!

  • @PeteWeachter
    @PeteWeachter 10 лет назад

    Understood, thank you. I suppose if I wanted to find a specific "customer", I could always just do a search. Thank you... Have a fabulous day!
    Pete

  • @pedroespinal5567
    @pedroespinal5567 8 лет назад

    Thank you soooo much, it helped me a loooot!

  • @michelledavidson4988
    @michelledavidson4988 11 лет назад

    Very useful video, Thanks Bill.

  • @mulisaurus
    @mulisaurus Год назад +1

    In this new world of AI this video has been extremely helpful. Thank you.

  • @filirojas
    @filirojas 11 лет назад

    Thank you Mr. Excel, already posted, I am sure I will get some assistance.
    Keep Up the good work.
    Gracias de Nuevo.

  • @araceli0519
    @araceli0519 10 лет назад

    You dedicating your time to create these tutorials is very helpful, thank you. Is there anyway you can get the next invoice number to generate on the next spreadsheet within the same workbook ( and the one after that, etc.) ?

  • @Sox_girl
    @Sox_girl 3 года назад

    OMG this is awesome! Thank You.

  • @gerganamasheva6432
    @gerganamasheva6432 6 лет назад

    Thank you. This trick was useful for me.

  • @JonathanIsmaila
    @JonathanIsmaila 5 лет назад

    Wow!!! Superb tutorial!!

  • @Move4LessUK
    @Move4LessUK 11 лет назад

    Much appreciated - thanks again for your help :-)

  • @rahoofps
    @rahoofps 6 лет назад +1

    Thank you, I got What I Search for :)

  • @alltimehitz7163
    @alltimehitz7163 9 лет назад

    Awesome............. Great...........
    So Helpful....
    Thanks a lot

  • @mazinaibrahim3191
    @mazinaibrahim3191 6 лет назад

    So much of help this video is
    Thank a bunch

  • @mauricejefferson9217
    @mauricejefferson9217 10 лет назад

    Bill,
    I got it to work
    Thank You In Advance

  • @alexmoreno7275
    @alexmoreno7275 4 года назад

    Thank you so much. It works for me.

  • @dodger150765
    @dodger150765 7 лет назад

    Some awesome tips thank you !!!!! Can you produce a separate workbook with a summary of all invoices - line by line ?

  • @adeerevs9029
    @adeerevs9029 11 лет назад

    Greetings Mr.Jelen,
    Thank you for your most useful and pertinent tips. How do you reset the automated invoice number counter once you're through testing it?

  • @oOonu
    @oOonu 3 года назад

    This is too cool - thank you a lot!

  • @robertberesh4376
    @robertberesh4376 10 лет назад

    Great Video Bill! Is there anyway to advance to the next row or cell for the next number in sequence?

  • @ka-sr1bz
    @ka-sr1bz 9 лет назад

    Thank you Bill ,very usefull and easy

  • @linhnguyen-gp3xr
    @linhnguyen-gp3xr 11 лет назад

    Thank you for your reply.

  • @tjh2542
    @tjh2542 11 лет назад

    Hey Bill, nice video. I was curious if there was any way to store all the previous invoices in the same sheet in sort of a table, even when you only add and save one at a time

  • @MegaSAMORAI
    @MegaSAMORAI 11 лет назад

    thank you for your prompt reply,i will creat those topics on your website.

  • @TheDesignStudy
    @TheDesignStudy 9 лет назад

    Great Video -- thanks a million

  • @pankajbabbar2133
    @pankajbabbar2133 6 лет назад

    you are genius sir. hats off to you. god bless you.

  • @sasavienne
    @sasavienne 5 лет назад

    Excellent. Thank you so much.

  • @gmcomputercenter5890
    @gmcomputercenter5890 4 года назад

    It's a very helpful video

  • @olvmini
    @olvmini 11 лет назад

    Thanks that help alot and mange to finish.

  • @darylgz06
    @darylgz06 6 лет назад

    Good stuff! Thanks!

  • @mattrubenstein9368
    @mattrubenstein9368 10 лет назад

    Thanks Bill,
    I ended up retyping the code. Must have had that typo... Thanks!

  • @johnteoss
    @johnteoss 9 лет назад

    Great one :D thank you

  • @linhnguyen-gp3xr
    @linhnguyen-gp3xr 10 лет назад

    Thank you, I followed your instruction carefully and it works finally.
    My question is your book Mr. Excell 2005- 2010 and the yellow cover book just for 2010 excell. I don't know which book i should by buying to fit my usage. Does the 2010 book includes marco and verything else????
    Thanks

  • @mohameddesouki263
    @mohameddesouki263 11 лет назад

    thanks Mr bill i will do and go there

  • @jahangir82
    @jahangir82 6 лет назад

    respected sir its grate help from vedio .....thanks sir

  • @peteadams4387
    @peteadams4387 10 лет назад

    Bill thank you very much for your informative tutorial. It helped me immensely. I have 2 questions for you maybe you could help me with first is there a way to save to a PDF on the reset? and secondly Even though I created a new folder in my documents for the files to be saved to it only sends it to my documents? example "C:\Users\Pete\Documents\ArexTests" it saves it to documents and names it Arex Tests + invoice number? Other then that I did some things I never thought I would be able to

  • @ingridaguirre1146
    @ingridaguirre1146 8 лет назад

    Hi, thank you for the video! It helped a lot! If instead of saving a new workbook with invoice #, is there a way I can assign a macro to save and open new worksheet (on the same workbook, on the net tab) with the next invoice number and new blank invoice? Thank you!

  • @parry1988utube
    @parry1988utube 8 лет назад

    Working Fine Thanks Bill. :)

  • @krn14242
    @krn14242 12 лет назад

    Thanks Bill.

  • @GeorgeAJululian
    @GeorgeAJululian 3 года назад

    Many thanks very Helpful

  • @xprime29
    @xprime29 11 лет назад

    Thanks Bill

  • @jaibhosale195
    @jaibhosale195 7 лет назад

    I have Done it Sir. I installed PDF Add-ins to EXCEL 2007

  • @bestpricefurniture8039
    @bestpricefurniture8039 6 лет назад

    Hi Bill, we enjoy and learn so much from your videos. It would be awesome to save it in PDF instead excel file because we don't want anyone alter the invoice later on. It would be super nice of you if you can share us the code how to save to PDF instead of Excel. THANK YOU, Bill!

    • @bestpricefurniture8039
      @bestpricefurniture8039 6 лет назад

      Thanks Bill! We found your code in the link of the video description, but it was written for Windows only and you mentioned "There is different code for a Mac ..." Do you know where it is?

  • @summagleeson1330
    @summagleeson1330 8 лет назад

    All good worked it out, newer version :).
    Cheers

  • @jehanth
    @jehanth 9 лет назад

    Thank you Very Much Sir...

  • @sopheakdeyleng9727
    @sopheakdeyleng9727 7 лет назад

    this is really good tip.

  • @nubiamejia4835
    @nubiamejia4835 8 лет назад

    Hi Bill! This video has been GREAT help in implementing an easy estimating system with auto numbering. I do have one question. On my Save As worksheet, can I delete the "Reset" and "Save & Clear" buttons from it? Thanks!!

  • @SilvaOnTube
    @SilvaOnTube 2 года назад

    My new saved invoices have the macro buttons on them. Should they be there? Would they print? BTW, I'm so happy to have found you again. I used to go to your Mr. Excel videos all the time about ten years ago. You were always the BEST.

  • @samialmashhour2647
    @samialmashhour2647 6 лет назад

    Thank you so much my dear

  • @Dupton-vh1lk
    @Dupton-vh1lk 10 лет назад +1

    Thank you so much for this video. My boss LOVES it! He loves it so much that he is challenging me to figure out a way to populate a master spreadsheet with each invoice's information automatically after it's saved. I thought it would be easy-just link the cell to another cell in another spreadsheet, but then it occurred to me that each invoice is a separate sheet so the information would just continue to update over the old information. Any awesome way to do this? Thanks again!!!

  • @Move4LessUK
    @Move4LessUK 11 лет назад

    Thank you so much for this!!! I've been using the 'record button' for everything else but couldn't figure this out. Now it counts 1,2,3 etc for each click on the picture assigned. Before I was going to a distant cell, adding 1 and shifting cells to the right or down the page - total disaster - the formulas move with the cells and it eventually runs out of space.
    Let me know if you have any advice on security. How can I email a spreadsheet without someone changing it to suit themselves...?

  • @narinderkumar3612
    @narinderkumar3612 10 лет назад +1

    Hi thanks
    But i want to add new sheet with next invoice with instead creating a new EXCELwork book.
    How we can do dat....

  • @paulsmith5841
    @paulsmith5841 8 лет назад +1

    Bill this is great thank you! How do I alter the code to save the entire workbook? I have 5 tabs at the bottom and would like to save the lot as a copy and then create a new one? Thank you Bill

    • @BananaFromMars
      @BananaFromMars 6 лет назад +1

      Instead of using "ActiveSheet.Copy", use "Sheets.Copy". The rest of the code can stay the same.

  • @Bostanle
    @Bostanle 9 лет назад

    Hello and thanks for this great VBA code with us!! I got one small issue on Mac, cannot figure out how to save the file in the right folder, it always appear on my desktop.
    Thank you in advance!!

  • @moodkn
    @moodkn Год назад

    Thank You.... Excellent...

  • @kerynwoolmer7288
    @kerynwoolmer7288 5 лет назад

    Tkx for the great easy to understand video. Can it be saved as a template, so that I can just double-click to open a new document & it will automatically have a new invoice # (like one could do in Word) ?

  • @charudattakanade1882
    @charudattakanade1882 6 лет назад

    Hi Bill that was very useful for me, but i need to save the same in my existing data sheet were i regularly use to maintain the invoice details. Please suggest.

  • @wilng5371
    @wilng5371 7 лет назад

    Hi Bill, thank you for your Tip, just also like to know what code to use if you want to save with different name for customer ie for invoice ....thank you in advance!!

  • @MrJozzic
    @MrJozzic 10 лет назад

    Hi Bill, thanks for some great podcasts. I am new in VBA programming and have a question I hope you have the time to answer :-) I have an excel open, saved it as xlsm, On the first sheet I put in all data I need to generate different kinds of documents. When that is done I would like to save all sheets separately, one as an invoice, one as a voucher and one as an internal doc. I have created my macros (maybe not correctly) but I do not know how to run all macros in one and save the specific sheet. Can you help me out? Thanks Have a great day. Regards Johnny

  • @pwl6509
    @pwl6509 10 лет назад

    Bill thanks so much for what you do...you are a star.
    I have run the code and it works perfect, however, I want to save the whole workbook not just the sheet with the invoice.
    How do I go about this? Please help.
    Thanks
    PWL

  • @CJJamieson-gq2tj
    @CJJamieson-gq2tj Год назад +1

    I made the company logo the button for next invoice in place of your lightening bolt.

    • @MrXL
      @MrXL  Год назад

      Great idea.

  • @traceyschuette5324
    @traceyschuette5324 8 лет назад

    Hi Bill i really like your video is very helpful thank you so much. I have a macro button to increase to next invoice number and one to clear, but I would like to do is have a macro to save my invoice with the customer's name in a specific file is there a way to do that. Thanks Tracey

  • @kltan366
    @kltan366 5 лет назад

    tqvm. it works , anyhow can you please show how to send the whole workbook( several sheets ) to a new workbook, instead of only invoice( single sheet ) ?

  • @ramihardik
    @ramihardik 5 лет назад

    Hello Bill. Thank you so much for this video. I am using this and exporting my invoices as PDF. How can I set it to automatically print the PDF file when I run the Macro? I am using Microsoft office 2016.
    Appreciate your help.

  • @trinipits
    @trinipits 5 лет назад

    Good evening Mr Excel. This video was very informative. Is there any way I could save the invoices as PDF?