+ Reply to Thread
Results 1 to 3 of 3

Search duplicate before insert data using userform

  1. #1
    Forum Contributor
    Join Date
    03-06-2014
    Location
    malaysia
    MS-Off Ver
    Excel 2003/2010/2013
    Posts
    107

    Search duplicate before insert data using userform

    hi, Im creating a excel booklist for our library and im using userform to insert new entry of books details. could someone help me to fix my code to search duplicate for ISBN, title and call number. If this 3 entry no duplicate found, then only create/insert new booklist entry. So far im only managed to get this work for ISBN only.

    Please Login or Register  to view this content.
    https://www.excelforum.com/attachmen...1&d=1580278127
    Attached Files Attached Files
    Last edited by amein; 01-29-2020 at 02:25 AM. Reason: add details

  2. #2
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,483

    Re: Search duplicate before insert data using userform

    If you work with the textbox_exit event for each textbox, then you will know if the value exists right away.

    Please Login or Register  to view this content.

  3. #3
    Forum Contributor
    Join Date
    03-06-2014
    Location
    malaysia
    MS-Off Ver
    Excel 2003/2010/2013
    Posts
    107

    Re: Search duplicate before insert data using userform

    Quote Originally Posted by davesexcel View Post
    If you work with the textbox_exit event for each textbox, then you will know if the value exists right away.

    Please Login or Register  to view this content.
    Thank you for your reply, I modified little bit and come out with this.

    Please Login or Register  to view this content.
    Attachment 660266

    Then, now, I want to add a button so that once we found the duplicate, then we can click on that button and directly go to the cell of the duplicate data.

    I try something like this but only works with 1 value which is Title. how to combine this code so that can work with ISBN and Call number too?

    Or can we add into the first code for this purpose?

    Please Login or Register  to view this content.

+ 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. USERFORM : Search and edit data in userform
    By mohit.kumar9094 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-12-2018, 07:50 AM
  2. [SOLVED] How can I search a column for duplicate then transfer data from UserForm to next empy row?
    By gmr4evr1 in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 05-11-2016, 10:26 AM
  3. Userform, Search, copy an paste data from a userform database to another sheet.
    By masro in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 04-15-2015, 02:42 PM
  4. [SOLVED] Userform to search worksheet and display data back to the userform
    By zip247 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-05-2015, 05:46 AM
  5. Replies: 0
    Last Post: 02-27-2014, 04:43 PM
  6. Duplicate a spreadsheet and insert data in it
    By khantouch in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-06-2013, 04:29 AM
  7. Search column a for duplicate data and copy entire row to duplicate sheet
    By crazyAMP in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-20-2012, 08:21 PM

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