+ Reply to Thread
Results 1 to 3 of 3

Macro for numbering sequence

  1. #1
    Registered User
    Join Date
    10-11-2017
    Location
    Hong Kong
    MS-Off Ver
    2019
    Posts
    55

    Macro for numbering sequence

    Dear all experts,

    At attached excel, column A is an ID and column B is the number sequence.
    The first ID is fixed on 1000. If next row is the same ID, then the number will become 2000, 3000, etc.
    When the next row ID is different from previous ID, then the number will restart to 1000.
    May I know how to do this using Macro? Thanks a lot.

    Jack
    Attached Files Attached Files

  2. #2
    Forum Guru bakerman2's Avatar
    Join Date
    10-03-2012
    Location
    Antwerp, Belgium
    MS-Off Ver
    MO Prof Plus 2016
    Posts
    6,907

    Re: Macro for numbering sequence

    For starters.

    Please Login or Register  to view this content.
    Avoid using Select, Selection and Activate in your code. Use With ... End With instead.
    You can show your appreciation for those that have helped you by clicking the * at the bottom left of any of their posts.

  3. #3
    Registered User
    Join Date
    10-11-2017
    Location
    Hong Kong
    MS-Off Ver
    2019
    Posts
    55

    Re: Macro for numbering sequence

    It works. Thanks!

+ 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. Looking for some Sequence numbering help
    By partyrental in forum Excel General
    Replies: 5
    Last Post: 01-24-2019, 11:02 AM
  2. [SOLVED] numbering sequence code
    By RJ1969 in forum Excel General
    Replies: 15
    Last Post: 10-21-2018, 06:00 PM
  3. Sequence Numbering
    By thong127 in forum Excel General
    Replies: 4
    Last Post: 11-15-2016, 01:18 PM
  4. sequence numbering
    By jparmar in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-28-2016, 09:11 AM
  5. [SOLVED] Sequence in numbering..
    By Exequiel3k in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 05-26-2016, 10:58 AM
  6. Numbering a sequence
    By nods in forum Excel General
    Replies: 4
    Last Post: 10-06-2010, 11:00 AM
  7. Numbering Sequence
    By scw1217 in forum Excel General
    Replies: 1
    Last Post: 02-23-2009, 05:51 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