+ Reply to Thread
Results 1 to 4 of 4

preventing duplicates in userform for data entry

  1. #1
    Registered User
    Join Date
    10-21-2013
    Location
    bellingham, washington
    MS-Off Ver
    Excel 2003
    Posts
    32

    preventing duplicates in userform for data entry

    Hello again,

    My userform is coming along pretty well. I have figured out a way to date and time stamp the data that is being entered and a preliminary duplicate entry prevention code. I am learning as I go and I really appreciate all of the help!

    I have a attached the workbook.

    There are three things that I am wondering about:

    1. When entering the numbers into the userform the date/time fills the textbox next to the entered barcode, can someone help with code to have the time/date disappear if the barcode is cleared from the textbox

    2. The piece of code I have to prevent duplicates only works if the barcode has been entered into the spreadsheet, can someone help with code to have the duplicate prevention also check that there are no duplicates in the textboxes before transferred to the spreadsheet

    3. The piece of code I have to prevent duplicates only works if the barcode has at least one alpha character, can someone help with code to have the duplicate prevention check barcodes regardless if letters or numbers are used

    Thank you for the support I am sure others will find this useful barcodetest.xlsm

  2. #2
    Forum Expert gmr4evr1's Avatar
    Join Date
    11-24-2014
    Location
    Texas
    MS-Off Ver
    Office 2010 and 2007
    Posts
    3,448

    Re: preventing duplicates in userform for data entry

    For #1 try this after you End With..
    Please Login or Register  to view this content.
    This is just for TextBox1 & 6, you would have to do the same for the others. Not sure if it's the best solution, but, it works.
    As far as # 2 and 3, someone else may have to take that part of it.
    1N73LL1G3NC3 15 7H3 4B1L17Y 70 4D4P7 70 CH4NG3 - 573PH3N H4WK1NG
    You don't have to add Rep if I have helped you out (but it would be nice), but please mark the thread as SOLVED if your issue is resolved.

    Tom

  3. #3
    Registered User
    Join Date
    10-21-2013
    Location
    bellingham, washington
    MS-Off Ver
    Excel 2003
    Posts
    32

    Re: preventing duplicates in userform for data entry

    Thanks Tom I tried your suggestion and it worked! You can see it work in the attachmentbarcodetest 1.2.xlsm

  4. #4
    Forum Expert gmr4evr1's Avatar
    Join Date
    11-24-2014
    Location
    Texas
    MS-Off Ver
    Office 2010 and 2007
    Posts
    3,448

    Re: preventing duplicates in userform for data entry

    I'm glad it worked for you.

+ 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. Preventing Duplicates While Entering Data in Excel 2007
    By ExcelTip in forum Tips and Tutorials
    Replies: 2
    Last Post: 06-22-2014, 08:27 AM
  2. [SOLVED] Preventing Data Entry Unless Other Columns on That Same Row Are Filled Out First
    By HobbesIsReal in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 03-16-2013, 01:57 PM
  3. Listbox to Listbox, no duplicates & submitting same UserForm data for each Listbox entry.
    By jamieswift1977 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 12-18-2012, 12:18 PM
  4. Help preventing userform duplicates
    By nohero in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 06-09-2011, 08:41 AM
  5. Finding duplicates in list during UserForm entry process
    By excelnut1954 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-05-2006, 10:20 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