+ Reply to Thread
Results 1 to 6 of 6

Creating Invoice

  1. #1
    Registered User
    Join Date
    12-29-2011
    Location
    Nova Scotia
    MS-Off Ver
    Excel 2010
    Posts
    3

    Creating Invoice

    I am learning the VBA side of excel and find it very interesting.

    I am using Excel 2010 and am trying to create a user friendly invoice for someone who is not experienced in excel with all they would need to do is input the basic info and the rest is done for them.

    I think I have it set up that when you open the invoice it automatically gives you the next invoice number but what I am trying to do now is have a "save" button that it takes the invoice from the "template" and makes a new worksheet with the invoice number as the name of the worksheet. I have read online that some people recommend that making a new workbook is better then creating a worksheet in that file. The customer that is going to be using it will probably have about 100 invoices and it would be easier for him if it was in one file. I would rather not keep a database of the invoices but a copy of the invoice.

    I appreciate any advice, formulas anyon would be able to provide for me.

    thank you,

    ~W~

  2. #2
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Creating Invoice

    Please Login or Register  to view this content.

    Obviously in your macro you already know what the new invoice number is, put that in place to the namestring.
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  3. #3
    Registered User
    Join Date
    12-29-2011
    Location
    Nova Scotia
    MS-Off Ver
    Excel 2010
    Posts
    3

    Re: Creating Invoice

    Thank you for the reply.

    I have used the Code, it worked but when I put the invoice number in where you have "namestring" and then try to do antoher invoice it doesn't automatically change to the next new invoice numbers when I go to do another one. Also I am wondering is it possible when I save the invoice to a new worksheet as the invoice number then the "template" file goes back to blank and ready to start another invoice?

  4. #4
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Creating Invoice

    I've shown you how to copy a template sheet and name it. HOW you implement your "namestring" with your new invoice number is dependent on the rest of the macro that occurred already where you got the next number. You'll use that info to name the new sheet.

    Your template sheet should still be blank, we made a copy of it, right?

  5. #5
    Registered User
    Join Date
    12-29-2011
    Location
    Nova Scotia
    MS-Off Ver
    Excel 2010
    Posts
    3

    Re: Creating Invoice

    I'm sorry, I'm not sure what you mean. It did copy but how do I make it copy with a new invoice number and save it as that?

  6. #6
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: Creating Invoice

    Try this example,. It will do what you want but it would not be how I would create an Invoice system.



    Basic Invoice.xlsm
    Last edited by royUK; 01-21-2012 at 09:59 AM.
    Hope that helps.

    RoyUK
    --------
    For Excel Tips & Solutions, free examples and tutorials why not check out my web site

    Free DataBaseForm example

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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