+ Reply to Thread
Results 1 to 6 of 6

generating Unique ID from textboxs on userform

  1. #1
    Forum Contributor
    Join Date
    03-30-2015
    Location
    Northampton
    MS-Off Ver
    2010
    Posts
    275

    generating Unique ID from textboxs on userform

    hi all

    i have to text boxes "Reg1" (says either ("normal", "Sick", "Training") and "Reg3" (Date) and one spare "Reg24" and a button called Generate ID

    what i would like is a marco that looks at text in Reg1 and Reg2 then looks at Col F on a sheet called Database (for previous ID's so not to return a duplicate)

    and then the whole thing returns a unique ID.

    i dont even know if this is possible but could anyone help in this quest please

    unique ID to be created before all information from user form gets put onto sheet2 "Database"

    i dont know if this code will help in the quest and can me modified in any way

    Please Login or Register  to view this content.
    Last edited by Learning ExL; 04-04-2015 at 12:59 PM.

  2. #2
    Forum Expert
    Join Date
    10-09-2014
    Location
    Newcastle, England
    MS-Off Ver
    2003 & 2013
    Posts
    1,986

    Re: generating Unique ID from textboxs on userform

    What should the unique ID look like? If possible can you ipload your workbook (or a sample of it?)
    If someone has helped you then please add to their Reputation

  3. #3
    Forum Contributor
    Join Date
    03-30-2015
    Location
    Northampton
    MS-Off Ver
    2010
    Posts
    275

    Re: generating Unique ID from textboxs on userform

    Quote Originally Posted by pjwhitfield View Post
    What should the unique ID look like? If possible can you ipload your workbook (or a sample of it?)
    Template-User-registration - Spare.xlsm

    here is the file

  4. #4
    Forum Contributor
    Join Date
    03-30-2015
    Location
    Northampton
    MS-Off Ver
    2010
    Posts
    275

    Re: generating Unique ID from textboxs on userform

    the ID can be anything eg two letters and 4 numbers

  5. #5
    Forum Expert
    Join Date
    10-09-2014
    Location
    Newcastle, England
    MS-Off Ver
    2003 & 2013
    Posts
    1,986

    Re: generating Unique ID from textboxs on userform

    If you want the numeric bit to be unique then simply make it equal to the row number

    Please Login or Register  to view this content.

  6. #6
    Forum Contributor
    Join Date
    03-30-2015
    Location
    Northampton
    MS-Off Ver
    2010
    Posts
    275

    Re: generating Unique ID from textboxs on userform

    It needs to be generated in a text box

+ 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. Mail from userform in excel, content from textboxs and combobox
    By perkb in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 11-26-2013, 01:25 PM
  2. [SOLVED] Generating unique sequential numbers using VBA
    By onwell in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 02-01-2013, 11:15 AM
  3. Unique ID/Number generating
    By benzmar in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 11-14-2012, 12:31 AM
  4. Looping through userform textboxs to make them visible
    By Alan Steele in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-04-2012, 02:19 PM
  5. help looping through textboxs on userform
    By funkymonkUK in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 05-22-2006, 06:19 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