+ Reply to Thread
Results 1 to 14 of 14

Macro Generate Numbers in Sequential Order

  1. #1
    Forum Contributor
    Join Date
    06-18-2012
    Location
    Chennai, India
    MS-Off Ver
    Excel 2003, 2010
    Posts
    212

    Macro Generate Numbers in Sequential Order

    Hi Excelions

    I have briefed my requirement in excel.

    Kindly have a look and help to generate the file.

    Best
    Ram
    Attached Files Attached Files

  2. #2
    Forum Contributor
    Join Date
    06-18-2012
    Location
    Chennai, India
    MS-Off Ver
    Excel 2003, 2010
    Posts
    212

    Re: Macro Generate Numbers in Sequential Order

    Hi

    Can someone advise how to start with this,...??

    Best
    Rem0

  3. #3
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,516

    Re: Macro Generate Numbers in Sequential Order

    Bump in such short time?
    Please Login or Register  to view this content.

  4. #4
    Forum Contributor
    Join Date
    06-18-2012
    Location
    Chennai, India
    MS-Off Ver
    Excel 2003, 2010
    Posts
    212

    Re: Macro Generate Numbers in Sequential Order

    Hi Jindon

    Thats! perfect and thanks for that....

    However, i don't want to generate number for all tab at the same time, if possible can also include the sheetname in the prompt to which i want to generate numbers?

    Also i want to protect the column A till the row the value got generated.

    Best
    Rem0

  5. #5
    Forum Contributor
    Join Date
    06-26-2013
    Location
    LAX
    MS-Off Ver
    Excel 2007,Excel 2010
    Posts
    363

    Re: Macro Generate Numbers in Sequential Order

    Hi,

    I am not sure whether i understood your needs. But i don't see any need of a macro here..

    Just select the cell (a2) and drag down, excel will automatically fill the series TP2000001,TP2000002 till the range you need. same applies to the rest also.

    And to lock the cells, select the range you want to lock and right click -->format cells -->protection tab--->click the locked option box..

    Now, excel home tab -->format--->protect sheet--> give a password.

    Every time you need to add/edit the column, you need unlock with the given password.

    Hope this helps..

  6. #6
    Forum Contributor
    Join Date
    06-18-2012
    Location
    Chennai, India
    MS-Off Ver
    Excel 2003, 2010
    Posts
    212

    Re: Macro Generate Numbers in Sequential Order

    Hi Elayaz

    The problem is this file will be used by a team and should not be able to edit the already generated numbers.

    The users should only be able to generate numbers as many as they want in each sheet each time they generate the numbers the protection area should extend the protected area.

    Best
    Rem0

  7. #7
    Forum Contributor
    Join Date
    06-26-2013
    Location
    LAX
    MS-Off Ver
    Excel 2007,Excel 2010
    Posts
    363

    Re: Macro Generate Numbers in Sequential Order

    Understood. In that case, you will definitely need a macro

  8. #8
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,516

    Re: Macro Generate Numbers in Sequential Order

    Unlock the cell that you don't want to Lock first then run the code
    Please Login or Register  to view this content.

  9. #9
    Forum Contributor
    Join Date
    06-18-2012
    Location
    Chennai, India
    MS-Off Ver
    Excel 2003, 2010
    Posts
    212

    Re: Macro Generate Numbers in Sequential Order

    Perfect!

    Thanks a lot!

    Best
    Rem0

  10. #10
    Forum Contributor
    Join Date
    06-18-2012
    Location
    Chennai, India
    MS-Off Ver
    Excel 2003, 2010
    Posts
    212

    Re: Macro Generate Numbers in Sequential Order

    HI Jindon

    Can we also capture the creation date in column B?

    Best
    Rem0

  11. #11
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,516

    Re: Macro Generate Numbers in Sequential Order

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

  12. #12
    Forum Contributor
    Join Date
    06-18-2012
    Location
    Chennai, India
    MS-Off Ver
    Excel 2003, 2010
    Posts
    212

    Re: Macro Generate Numbers in Sequential Order

    Hi Jindon

    Can we get the generated IDs in a new work book after adding them?

    Best
    Rem0

  13. #13
    Forum Contributor
    Join Date
    06-18-2012
    Location
    Chennai, India
    MS-Off Ver
    Excel 2003, 2010
    Posts
    212

    Re: Macro Generate Numbers in Sequential Order

    Hi

    Further to the solution provided by Jindon, have a bug in the macro.

    Can some one look in to it?

    The Timestamp in the column 2 udpates the last row of the previous created sequential number.

    Best
    Rem0
    Attached Files Attached Files

  14. #14
    Forum Contributor
    Join Date
    06-18-2012
    Location
    Chennai, India
    MS-Off Ver
    Excel 2003, 2010
    Posts
    212

    Re: Macro Generate Numbers in Sequential Order

    Hi

    Can anyone look into my query and advise me?

    Best
    Rem0

+ 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