+ Reply to Thread
Results 1 to 10 of 10

OLDie but NEWBIE... Match data from combo box to another sheet in excel

  1. #1
    Registered User
    Join Date
    10-26-2013
    Location
    USA
    MS-Off Ver
    Excel 2003
    Posts
    10

    OLDie but NEWBIE... Match data from combo box to another sheet in excel

    I have a user select combo box D21 on sheet1 named Input populated from Column A on sheet2 named Data containing "mm/dd/yyyy hh:mm:ss". I want to have a text box at F24 on sheet1 (Input) that I can type in a date, then click a cmd button and have it preform the following function:

    Have the vba code to find the exact mm/dd/yyyy hh:mm:ss in column A on sheet2 and place the date from F24 (sheet1) to column "I"(sheet2) on the same row of where the exact mm/dd/yyyy hh:mm:ss was found in column A(sheet2), if empty.
    If a date already has been entered in column I, have a message box to confirm to replace it or cancel.

    Thank you all for any time and help for my inquiry.




    Have a pleasant tomorrow, by having coffee today!

  2. #2
    Forum Expert
    Join Date
    07-31-2010
    Location
    California
    MS-Off Ver
    Excel 2007
    Posts
    4,070

    Re: OLDie but NEWBIE... Match data from combo box to another sheet in excel

    Give this a try:

    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    10-26-2013
    Location
    USA
    MS-Off Ver
    Excel 2003
    Posts
    10

    Re: OLDie but NEWBIE... Match data from combo box to another sheet in excel

    Thank you for your skill and knowledge. I believe I should have said, Enter a date in cell F24 instead of using the reference {(I want to have a text box at F24 on sheet1)}. As your code that is written is looking for a TextBox1. Thank you again for any help.

  4. #4
    Forum Expert
    Join Date
    07-31-2010
    Location
    California
    MS-Off Ver
    Excel 2007
    Posts
    4,070

    Re: OLDie but NEWBIE... Match data from combo box to another sheet in excel

    I am a little confused now. I think you are saying that you just want to use the date entered into cell F24 on the "Input" sheet:

    Try:

    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    10-26-2013
    Location
    USA
    MS-Off Ver
    Excel 2003
    Posts
    10

    Re: OLDie but NEWBIE... Match data from combo box to another sheet in excel

    Thank you, Sir! PERFECT!

  6. #6
    Registered User
    Join Date
    10-26-2013
    Location
    USA
    MS-Off Ver
    Excel 2003
    Posts
    10

    Re: OLDie but NEWBIE... Match data from combo box to another sheet in excel

    Ok, I'm not sure what happened, but I'm attaching the file. It doesn't seem to be working now. The date in Input!F24 isn't accepted and it will not search for a exact match from Input D20 within column A on PartsData. And it doesn't copy the date to the Date completed column after the match is found on PartsData Sheet. TOTALLY CLUELESS........
    Attached Files Attached Files

  7. #7
    Forum Expert
    Join Date
    07-31-2010
    Location
    California
    MS-Off Ver
    Excel 2007
    Posts
    4,070

    Re: OLDie but NEWBIE... Match data from combo box to another sheet in excel

    Where in any of your previous posts did you mention D20?!? Every little detail matters and you left out a biggie.

    Secondly, D20 is not just a date. It is a date with time after it which is causing another problem

    Try this now:

    Please Login or Register  to view this content.
    Note: You also didn't specify that you were going to have multiple equivalent dates and as such this macro is only going to find the first acceptable date and apply the date completed to that row.
    Last edited by stnkynts; 10-28-2013 at 10:48 PM.

  8. #8
    Registered User
    Join Date
    10-26-2013
    Location
    USA
    MS-Off Ver
    Excel 2003
    Posts
    10

    Re: OLDie but NEWBIE... Match data from combo box to another sheet in excel

    Thank you for all your time invested! The only reason I wanted to use mm/dd/yyyy hh:mm:ss format was so I could select it in the combo box d20 (I mistakenly identified it as d21)and use it as reference for an exact match PartsData!A:A in order to enter a date completed on the correct row of column J. I realize that initially I said column I, but after needing to add more information to the DB, I will have to add more columns. I thought I had a few brain cells left which I could tweek it in order to make your solution work.........obviously not!
    Attached Files Attached Files

  9. #9
    Forum Expert
    Join Date
    07-31-2010
    Location
    California
    MS-Off Ver
    Excel 2007
    Posts
    4,070

    Re: OLDie but NEWBIE... Match data from combo box to another sheet in excel

    I believe this should fix your problem:

    Please Login or Register  to view this content.

  10. #10
    Registered User
    Join Date
    10-26-2013
    Location
    USA
    MS-Off Ver
    Excel 2003
    Posts
    10

    Re: OLDie but NEWBIE... Match data from combo box to another sheet in excel

    Yes sir, it does!

+ 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. Replies: 3
    Last Post: 04-23-2013, 06:49 PM
  2. Replies: 1
    Last Post: 03-11-2013, 05:37 AM
  3. How to use combo box input to select work sheet to copy data to in excel vba
    By Hashana in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 11-05-2012, 11:00 AM
  4. [SOLVED] data match in excel sheet
    By sonu_kumar444 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 10-31-2012, 01:26 AM
  5. [SOLVED] Getting Data from Embed combo box in excel sheet to vb .net
    By CoolCyber in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-26-2005, 07:05 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