+ Reply to Thread
Results 1 to 13 of 13

How can I search a column for duplicate then transfer data from UserForm to next empy row?

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

    Question How can I search a column for duplicate then transfer data from UserForm to next empy row?

    Howdy everyone,
    I have a workbook (Attached) with a UserForm (very basic for the purpose of this question).
    What I would like to do is when the 'Submit" button is pressed, the value for the ComboBox (named Press) is checked against Sheet1 Column B for duplicates. If a duplicate IS found, then transfer the value from Press (ComboBox) to the next available row in Column B AFTER the duplicate value.
    If a duplicate is NOT found, then find the last used row, skip2 rows then place the value from Press (ComboBox) in the 3rd row of Column B.

    Search B for same then next blank row.xlsm
    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

  2. #2
    Forum Expert
    Join Date
    12-14-2012
    Location
    London England
    MS-Off Ver
    MS 365 Office Suite.
    Posts
    8,448

    Re: How can I search a column for duplicate then transfer data from UserForm to next empy

    Please Login or Register  to view this content.
    My General Rules if you want my help. Not aimed at any person in particular:

    1. Please Make Requests not demands, none of us get paid here.

    2. Check back on your post regularly. I will not return to a post after 4 days.
    If it is not important to you then it definitely is not important to me.

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

    Re: How can I search a column for duplicate then transfer data from UserForm to next empy

    mehmetcik,
    PERFECT!! I had a feeling you might be the one to help me out with this, thank you very much. I noticed that I forgot to mention that when it does find a duplicate, I need the data from Press(ComboBox) to go into the next row after the duplicate value, which you have done.....But, I also need it to insert another row after that data is transferred. I think I might be able to figure this part out though.

    Thanks a bunch!
    P.S.>
    The code I was trying to come up with on my own was wayyyyyy more complicated than yours is.

  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: How can I search a column for duplicate then transfer data from UserForm to next empy

    mehmetcik,
    Well, I thought we had it there, but after going through it a bit I realize that it isn't quite working the way I wanted, and I haven't been able to figure it out. I had something that I thought was going to work, but, it didn't. I have attached the workbook with your code in the UserForm, and my code in Sheet1 VBA properties. On Sheet1 you will see the result I am getting and the desired result.

    If you have questions, refer to the 1st post in this thread or feel free to ask me.
    TIA
    Dang it...I forgot the attachment!!!!!! Here it is
    456169d1460661317-how-can-i-search-a-column-for-duplicate-then-transfer-data-from-userform-to-n.xlsm
    Last edited by gmr4evr1; 05-01-2016 at 08:43 AM. Reason: Added forgotten attachment

  5. #5
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,523

    Re: How can I search a column for duplicate then transfer data from UserForm to next empy

    Is this how you wanted?
    Please Login or Register  to view this content.

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

    Re: How can I search a column for duplicate then transfer data from UserForm to next empy

    jindon,
    Thank you for helping out here. I tried your code but it didn't quite do what I'm trying to accomplish. I have attached the file so you can see what it's doing, and what I'm trying to have it do.
    456169d1460661317-how-can-i-search-a-column-for-duplicate-then-transfer-data-from-userform-to-n.xlsm

  7. #7
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,523

    Re: How can I search a column for duplicate then transfer data from UserForm to next empy

    Ahh, try change to
    Please Login or Register  to view this content.

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

    Re: How can I search a column for duplicate then transfer data from UserForm to next empy

    By George I think you've done it!!!
    I did a quick test on it and it seems to be doing exactly what I needed.
    Thanks a bunch jindon!!!

  9. #9
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,523

    Re: How can I search a column for duplicate then transfer data from UserForm to next empy

    You are welcome and thanks for the rep.

    Please don't forget to mark the thread as "Solved".

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

    Re: How can I search a column for duplicate then transfer data from UserForm to next empy

    Oops...done

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

    Re: How can I search a column for duplicate then transfer data from UserForm to next empy

    jindon,

    I know I have marked this as solved, but I found an issue. I had forgotten that there are formulas involved in the sheet I am working with and was wondering if there is a way to -
    1) Add the formulas from Column H from the cell above to the newly created row(s) with the correct row referenced in the formula
    2) Add the newly created row(s) into the formula to the cell below

    Attached is a sample workbook with a (hopefully) better explanation.
    Copy of 20160111 Utilization - Elster Impact with UserForm.xlsm
    If I need to create a new post for this, let me know.

    Also, here is the code that you provided with my modifications..
    Please Login or Register  to view this content.

  12. #12
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,523

    Re: How can I search a column for duplicate then transfer data from UserForm to next empy

    See if this works.
    Please Login or Register  to view this content.

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

    Re: How can I search a column for duplicate then transfer data from UserForm to next empy

    jindon,
    You are AMAZING!!!! Thank you very much for the new code, it works flippin beautifully!! I'm almost POSITIVE that I have checked and double checked everything to make sure that this is all I needed help with.
    Thanks AGAIN!

+ 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. DATA Transfer without duplicate
    By god_karthi in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-04-2015, 09:24 AM
  2. [SOLVED] Transfer numbers from userform divited by a search number
    By MariaPap in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 01-27-2014, 02:12 AM
  3. combining chart userform and data transfer userform into 1 userform
    By H_Kennedy in forum Excel Charting & Pivots
    Replies: 2
    Last Post: 01-04-2014, 07:11 AM
  4. combining chart userform and data transfer userform into 1 userform
    By H_Kennedy in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 01-03-2014, 12:28 PM
  5. [SOLVED] Userform to transfer data to another userform
    By Oeysbrei in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-19-2012, 04:46 PM
  6. [SOLVED] Userform to add data into next empy
    By andywsw in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 05-07-2012, 10:09 PM
  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

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