+ Reply to Thread
Results 1 to 4 of 4

Auto Generate a Unique Identifier

Hybrid View

  1. #1
    Forum Contributor
    Join Date
    12-19-2012
    Location
    Woodbridge, Virginia
    MS-Off Ver
    Excel 2010
    Posts
    111

    Auto Generate a Unique Identifier

    Excel Gurus,

    Currently, I have a working UserForm (please see attached) that spits out data onto a worksheet depending on the Year. For example, if user enters 2010, that data will get added to the worksheet titled 2010. What I would like for it to do now is autogenerate a unique identifier on the UserForm so that the user can note it and whenever they need to go back to the data they submitted, they can easily find it with the unique identifier. Is this something that can be done in VBA? If so, can someone please share with me on how to get this done?

    Thank you in advance for your help!

    Jae
    Attached Files Attached Files

  2. #2
    Forum Contributor
    Join Date
    12-19-2012
    Location
    Woodbridge, Virginia
    MS-Off Ver
    Excel 2010
    Posts
    111

    Re: Auto Generate a Unique Identifier

    I forgot to mention that I would like the unique identifier to start with the Year and then numbers ex: (201000001).

    Thank you again.

  3. #3
    Forum Expert OllieB's Avatar
    Join Date
    12-20-2012
    Location
    Netherlands
    MS-Off Ver
    Excel 2007 (home) & 2010 (office)
    Posts
    1,542

    Re: Auto Generate a Unique Identifier

    Would it be an option to use the timestamp as a unique identifier?

    For example

    Format$(Now(), "yyyymmddhhmmss")
    would be unique enough?

  4. #4
    Forum Contributor
    Join Date
    12-19-2012
    Location
    Woodbridge, Virginia
    MS-Off Ver
    Excel 2010
    Posts
    111

    Re: Auto Generate a Unique Identifier

    Yes, that will be enough! Thank you!

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

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