Results 1 to 6 of 6

generating Unique ID from textboxs on userform

Threaded View

  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

    =IF(C3="","",LEFT(D3,1)&LEFT(C3,1)&RIGHT($Z$3,4)+1)
    Last edited by Learning ExL; 04-04-2015 at 12:59 PM.

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