+ Reply to Thread
Results 1 to 5 of 5

Auto Serial number

  1. #1
    Registered User
    Join Date
    08-28-2016
    Location
    Gondia
    MS-Off Ver
    m s office 10
    Posts
    8

    Auto Serial number

    Haiiii,

    i have created an userform for my basic requirement ... and i am able to create a code for auto generated Serial Number for the same (eg. 001...) but i want to change the serial numbers in other form eg. "C-001" as i have crated 3 userforms and want unique serial number for respective user form. initially the same working fine but when i have made an amendments in my code for unique serial number , it is not working properly as everytimes i'm getting the same serial number.

    Code:
    Please Login or Register  to view this content.
    Please help / suggest.
    Regards,
    Last edited by FDibbins; 10-14-2016 at 01:35 AM.

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,938

    Re: Auto Serial number

    Hi, welcome to the forum

    Your post does not comply with Rule 3 of our Forum RULES. Use code tags around code.

    Posting code between [CODE]Please [url=https://www.excelforum.com/login.php]Login or Register [/url] to view this content.[/CODE] tags makes your code much easier to read and copy for testing, it also maintains VBA formatting.

    Highlight your code and click the # icon at the top of your post window. More information about these and other tags can be found here

    (I will add them for you - this time )
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

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

    Re: Auto Serial number

    How about this?
    Please Login or Register  to view this content.
    Last edited by bakerman2; 10-14-2016 at 07:36 PM.
    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.

  4. #4
    Registered User
    Join Date
    08-28-2016
    Location
    Gondia
    MS-Off Ver
    m s office 10
    Posts
    8

    Re: Auto Serial number

    Dear Bakerman2,

    i tried this codes and they are working fine for some extend as in some of my serial numbers are having multiple row entries with same serial number.
    So in those scenarios, serial numbers are not in same sequence.

    workbook attached herewith for reference.

    Regards,
    Attached Files Attached Files

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

    Re: Auto Serial number

    Check if this meets your needs.
    Attached Files Attached Files

+ 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 Serial Number Using VBA
    By LoveCandle in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 03-21-2022, 09:24 PM
  2. [SOLVED] Auto Populate Serial Number From Total number
    By sanju2323 in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 08-04-2015, 04:33 PM
  3. Auto generate serial number
    By silambarasan.J in forum Excel General
    Replies: 2
    Last Post: 01-31-2015, 12:46 PM
  4. Auto generate serial number
    By silambarasan.J in forum Excel General
    Replies: 3
    Last Post: 01-31-2015, 08:33 AM
  5. Auto Serial Number
    By MdYas in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-23-2014, 08:19 AM
  6. Shortcyt key for auto serial number
    By dingdang in forum Excel General
    Replies: 1
    Last Post: 07-16-2013, 02:17 AM
  7. Auto Fill the serial Number
    By anwitha in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 10-23-2010, 02:11 AM

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