+ Reply to Thread
Results 1 to 5 of 5

Invoice Number + 1, Auto Appear

  1. #1
    Registered User
    Join Date
    03-06-2009
    Location
    gfuiuyfi
    MS-Off Ver
    Excel 2003
    Posts
    5

    Invoice Number + 1, Auto Appear

    Cell D15 is my Invoice Number Field.

    I have entered my invoice number starting from 001. I am doing this manually every time after referring the previous Invoice Number in the next sheet( i.e., Sheet 2)

    I have a macro "SAVE" in Invoice Page, which copies the S.No, Name , Qty and Amount from the Invoice page to the next Sheet i.e., ( Sheet 2). This copies row by row in the next page after every Invoice is done.
    After Copying the above said datas, I have another Macro "NEW" which deletes the S.No Field, Name, Qty and Amount Field for keeping the Invoice ready for the next Feed.

    Is it possible to auto increase the invoice number + 1 in the Invoice Filed, based on the copied Invoice number in the Next Sheet ( Sheet 2 ). Provided, hitting the "New" button for the next feed should not affect the S.No Field.

    Kindly Help.

    Jane

    Please Login or Register  to view this content.
    Please Login or Register  to view this content.

  2. #2
    Valued Forum Contributor mudraker's Avatar
    Join Date
    11-10-2003
    Location
    Melbourne, Australia
    Posts
    3,983

    Re: Invoice Number + 1, Auto Appear

    As long as you have the invoice last invoice number stored then you can use a macro to look up the invoice number & add 1 to it & place it as required


    Please explain why With your DeleteStuff macro you are using a loop & clearing the contents if they are numeric or not numeric

    Please Login or Register  to view this content.
    why not just use
    Please Login or Register  to view this content.
    Why in your saveit macro you are using a loop & select case to populate a range of cells


    Surly the following code does the same as your loop
    Please Login or Register  to view this content.
    Please Read Forum Rules Before Posting
    Wrap VBA code by selecting the code and clicking the # icon or Read This
    How To Cross Post politely

    Top Excel links for beginners to Experts

    If you are pleased with a member's answer then use the Scales icon to rate it
    If my reply has assisted or failed to assist you I welcome your Feedback.

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

    Re: Invoice Number + 1, Auto Appear

    Cross post:
    http://www.mrexcel.com/forum/showthread.php?t=376232
    _________________
    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!)

  4. #4
    Valued Forum Contributor mudraker's Avatar
    Join Date
    11-10-2003
    Location
    Melbourne, Australia
    Posts
    3,983

    Re: Invoice Number + 1, Auto Appear

    Please take a couple of minutes and read ALL the Forum Rules
    [

    I]Your post does not comply with Rule 8 of our Forum [/I]RULES. Cross-posting is when you post the same question in other forums on the web. You'll find people are disinclined to respond to cross-posts because they may be wasting their time solving a problem that has been solved elsewhere. We prefer that you not cross-post at all, but if you do (and it's unlikely to go unnoticed), you MUST provide a link (copy the url from the address bar in your browser)to the cross-post. Expect cross-posts without a link to be closed a message will be posted by the moderator explaining why. We are here to help so help us help you!


    As JBeaucaire has taken the trouble to provide the link to your Cross Posted thread this thread will not be closed as stated in the rules

    PS thanks JBeaucaire

  5. #5
    Forum Contributor
    Join Date
    01-06-2009
    Location
    uk
    MS-Off Ver
    Excel 2007
    Posts
    415

    Re: Invoice Number + 1, Auto Appear

    i am now off to work and havent got the time right now but i have a purchase order set up for exactly the same thing.
    broro did it for me and is really good. you may be able to use it. i will upload it tonight as soon as i get home from work

+ 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