Results 1 to 15 of 15

ID number generation - with prefix

Threaded View

  1. #1
    Registered User
    Join Date
    09-15-2014
    Location
    QLD Australia
    MS-Off Ver
    2010
    Posts
    18

    Thumbs up ID number generation - with prefix

    Hi everyone,

    I am currently working on a personal project, creating a macro in excel to better manage a register of businesses.
    It is incomplete at the moment.

    Currently, I have a userform with a field licencetext where the user can enter a number which acts as an ID number (the prefix "FB" is added during transfer of data from the userform to the sheet.

    However, if the field is left blank, a would like excel to generate the next unique three digit number available (and verify that is not a duplicate)

    Any ideas on how to do this? I have had a look at some other threads on the net, but can't seem to find something relevant or easy to understand - I am new to VBA and entirely self-taught mainly through just google and looking at examples... yea I know, it's pretty bad form XD


    Edit. Attachment included - please note the code and layout of userform are not complete
    Attached Files Attached Files
    Last edited by ania1224; 04-09-2018 at 07:27 PM. Reason: solved

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Add prefix to number
    By sherlock57 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-16-2017, 11:27 AM
  2. Prefix number in formula
    By wholly1971 in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 06-19-2016, 12:12 PM
  3. Replies: 2
    Last Post: 08-11-2015, 05:22 AM
  4. [SOLVED] Number prefix for employee id
    By iqubalemco in forum Excel General
    Replies: 5
    Last Post: 10-29-2014, 12:35 AM
  5. Adding 0 as prefix for number when number is quoted
    By VIJEXCEL in forum Excel General
    Replies: 3
    Last Post: 04-05-2011, 05:38 PM
  6. Prefix number with '
    By JohnD0e in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-10-2010, 03:48 AM
  7. [SOLVED] Add prefix to number
    By sprinter1801 in forum Excel General
    Replies: 5
    Last Post: 02-06-2010, 09:22 AM

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