+ Reply to Thread
Results 1 to 4 of 4

Auto generating sequence number

  1. #1
    Registered User
    Join Date
    11-15-2012
    Location
    Denmark
    MS-Off Ver
    Excel 2021
    Posts
    50

    Auto generating sequence number

    Is it possible to create a spreadsheet that auto generates a sequence number every time the spreadsheet is opened, or, for example, a button is pressed.

    The sequence should have a certain prefix, for example DK-XXXXX-followed by the sequence number, and the user should not be able to overwrite the fields, at least not the output. Finally, the spreadsheet should automatically save the spreadsheet upon exit, so avoid the risk of using the same sequence number more than once.

    Is all this possible?

  2. #2
    Forum Expert Tinbendr's Avatar
    Join Date
    06-26-2012
    Location
    USA
    MS-Off Ver
    Office 2010
    Posts
    2,125

    Re: Auto generating sequence number

    Search is your friend. Look for incrementing invoice number. That seems to be the most common.
    Link one
    Linke 2

    the user should not be able to overwrite the fields
    You can protect only certain cells to prevent overwriting.
    David
    (*) Reputation points appreciated.

  3. #3
    Forum Expert jaslake's Avatar
    Join Date
    02-21-2009
    Location
    Atwood Lake in Mid NE Ohio...look it up.
    MS-Off Ver
    Excel 2010 2019
    Posts
    12,749

    Re: Auto generating sequence number

    See this Link

    http://www.excelforum.com/excel-prog...utonumber.html
    John

    If you have issues with Code I've provided, I appreciate your feedback.

    In the event Code provided resolves your issue, please mark your Thread as SOLVED.

    If you're satisfied by any members response to your issue please use the star icon at the lower left of their post.

  4. #4
    Forum Expert jaslake's Avatar
    Join Date
    02-21-2009
    Location
    Atwood Lake in Mid NE Ohio...look it up.
    MS-Off Ver
    Excel 2010 2019
    Posts
    12,749

    Re: Auto generating sequence number

    Hi DKAbi

    Yes, this is possible.

    Let us see what you have and what you'd like it to be.

    Please attach a sample file that represents what you have. The structure of your attachment should be the same structure as your actual data. Any proprietary information should be changed.

    Include in the attachment any code you're currently using (whether it works or not) and an "After" worksheet that demonstrates what you wish the output to be.

    To Attach a File:

    1. Click on Go Advanced
    2. In the frame Attach Files you will see the button Manage Attachments
    3. Click the button.
    4. A new window will open titled Manage Attachments - Excel Forum.
    5. Click the "Add Files"... button to locate your file for uploading.
    6. This will open a new window File Upload...Click "Select Files"
    7. Once you have located the file to upload click the Open button. This window will close.
    8. You are now back in the Manage Attachments - Excel Forum window.
    9. Click the "Upload Files" button and wait until the file has uploaded.
    10. Click the "Done" Button.

+ 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. Auto generating work order number
    By Shmoedoe in forum Excel Programming / VBA / Macros
    Replies: 25
    Last Post: 10-30-2016, 06:41 PM
  2. auto- sequence number based on another column?
    By maynard in forum Excel General
    Replies: 6
    Last Post: 07-29-2016, 10:31 PM
  3. Replies: 2
    Last Post: 08-30-2013, 02:39 PM
  4. auto generating number based on information from other cells
    By cody1187 in forum Excel - New Users/Basics
    Replies: 6
    Last Post: 02-21-2012, 02:27 PM
  5. [SOLVED] How do I set up Auto sequence number in excle
    By Nassir in forum Excel Charting & Pivots
    Replies: 0
    Last Post: 06-08-2006, 03:15 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