+ Reply to Thread
Results 1 to 17 of 17

Find Data in Form

  1. #1
    Valued Forum Contributor marreco's Avatar
    Join Date
    07-02-2011
    Location
    Brazil
    MS-Off Ver
    Excel 2010
    Posts
    1,862

    Find Data in Form

    Hello everyone, I would like to do a search based on two criteria, then post this data in the ListView.

    I am TxtBox1 = start date.
    TxtBox2 = end date.
    these data will be sought in sheet1 column A7.
    In a Listbox, will put the user in this case which will get users on Sheet2.

    Caaso find the dates entered in txtbox1 and 2, and search for the Junior Member lilstbox, then what is found will be shown in the ListView.

    See my attachment, he already has the form ready.

    Thank you!
    Attached Files Attached Files
    Last edited by marreco; 03-06-2012 at 07:23 AM.

  2. #2
    Valued Forum Contributor Charles's Avatar
    Join Date
    02-10-2004
    Location
    Biloxi
    MS-Off Ver
    Windows 7, Excel 2003,2007 & Mac2011
    Posts
    845

    Re: Find Data in Form

    Hi,

    Here's a bit of code that can help you get started. It will filted for the Dates in Textbox1 and 2. All you need to do is provide the code to populate the Listview.

    Please Login or Register  to view this content.
    Last edited by Charles; 03-04-2012 at 09:45 PM. Reason: wrong range for filter
    Charles

    There are other ways to do this, this is but 1 !
    Be Sure you thank those who helped.
    IF YOU'RE SATISFIED BY ANY MEMBERS RESPONSE TO YOUR ISSUE PLEASE USE THE STAR ICON AT THE BOTTOM LEFT OF THE POST UNDER THEIR NAME.

  3. #3
    Valued Forum Contributor marreco's Avatar
    Join Date
    07-02-2011
    Location
    Brazil
    MS-Off Ver
    Excel 2010
    Posts
    1,862

    Re: Find Data in Form

    Thanks for responding but still could not adapt.
    Now how do I load the lisview with the code you sent me?

    Thank you

  4. #4
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: Find Data in Form

    Why do you need a ListView, a ListBox would be simpler & looks to me to be better suited
    Hope that helps.

    RoyUK
    --------
    For Excel Tips & Solutions, free examples and tutorials why not check out my web site

    Free DataBaseForm example

  5. #5
    Valued Forum Contributor marreco's Avatar
    Join Date
    07-02-2011
    Location
    Brazil
    MS-Off Ver
    Excel 2010
    Posts
    1,862

    Re: Find Data in Form

    Since, show me the result of the data in column A to column K.

    For me no problem.

    Thank you!

  6. #6
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: Find Data in Form

    Quote Originally Posted by marreco View Post
    Since, show me the result of the data in column A to column K.

    For me no problem.

    Thank you!
    It's obviously a problem because you are asking the question. A ListBox will do thiis with less programming

  7. #7
    Valued Forum Contributor marreco's Avatar
    Join Date
    07-02-2011
    Location
    Brazil
    MS-Off Ver
    Excel 2010
    Posts
    1,862

    Re: Find Data in Form

    Can you help me?

    Thank you

  8. #8
    Valued Forum Contributor marreco's Avatar
    Join Date
    07-02-2011
    Location
    Brazil
    MS-Off Ver
    Excel 2010
    Posts
    1,862

    Re: Find Data in Form

    Hi..

    Any Idea?
    Thank you

  9. #9
    Forum Expert jaslake's Avatar
    Join Date
    02-21-2009
    Location
    Atwood Lake in Mid NE Ohio...look it up.
    MS-Off Ver
    Excel 2010 2019
    Posts
    12,749

    Re: Find Data in Form

    Hi marreco
    I'll be glad to look at this with you. The file you attached has an invalid digital signature and so, won't allow Macros to run. Please remove the digital signature and upload the file again.
    John

    If you have issues with Code I've provided, I appreciate your feedback.

    In the event Code provided resolves your issue, please mark your Thread as SOLVED.

    If you're satisfied by any members response to your issue please use the star icon at the lower left of their post.

  10. #10
    Valued Forum Contributor marreco's Avatar
    Join Date
    07-02-2011
    Location
    Brazil
    MS-Off Ver
    Excel 2010
    Posts
    1,862

    Re: Find Data in Form

    Forgive me master jaslake.

    See if it's right now.
    Attached Files Attached Files

  11. #11
    Forum Expert jaslake's Avatar
    Join Date
    02-21-2009
    Location
    Atwood Lake in Mid NE Ohio...look it up.
    MS-Off Ver
    Excel 2010 2019
    Posts
    12,749

    Re: Find Data in Form

    Much better

  12. #12
    Forum Expert jaslake's Avatar
    Join Date
    02-21-2009
    Location
    Atwood Lake in Mid NE Ohio...look it up.
    MS-Off Ver
    Excel 2010 2019
    Posts
    12,749

    Re: Find Data in Form

    Hi marreco
    Attached is a file that has ListView Controls embedded. It appears to gather the data you requested. Some error checking needs to be incorporated but, now that you have it, what are you going to do with it?
    Attached Files Attached Files
    Last edited by jaslake; 03-05-2012 at 11:06 PM.

  13. #13
    Valued Forum Contributor marreco's Avatar
    Join Date
    07-02-2011
    Location
    Brazil
    MS-Off Ver
    Excel 2010
    Posts
    1,862

    Re: Find Data in Form

    Good morning!
    I have not done any more testing I'm very happy.

    It was perfect, you're a genius excel, thank you very much!

    Will I ever know what you Excel and VBA?

  14. #14
    Forum Expert jaslake's Avatar
    Join Date
    02-21-2009
    Location
    Atwood Lake in Mid NE Ohio...look it up.
    MS-Off Ver
    Excel 2010 2019
    Posts
    12,749

    Re: Find Data in Form

    Hi marreco
    Happy to have helped...thanks for the style points. Regarding this
    Will I ever know what you Excel and VBA?
    I don't have it figured out yet...perhaps we'll do it together.

  15. #15
    Valued Forum Contributor marreco's Avatar
    Join Date
    07-02-2011
    Location
    Brazil
    MS-Off Ver
    Excel 2010
    Posts
    1,862

    Re: Find Data in Form

    I'm trying to make an adjustment in your code to another arquuivo.

    But I'm not consguindo.
    http://www.excelforum.com/excel-prog...-combobox.html
    If you have some time and can look, anyway thanks!

  16. #16
    Forum Expert jaslake's Avatar
    Join Date
    02-21-2009
    Location
    Atwood Lake in Mid NE Ohio...look it up.
    MS-Off Ver
    Excel 2010 2019
    Posts
    12,749

    Re: Find Data in Form

    Hi marreco
    My Portuguese/Spanish experience is about 60 years in the past (I'm an old guy). I looked up arquuivo and it seems to mean file (which, in context, makes sense). Couldn't find consguindo but I assume it means "I don't understand". I've subscribed to your new Thread...I'll follow it and respond as I can.

  17. #17
    Valued Forum Contributor marreco's Avatar
    Join Date
    07-02-2011
    Location
    Brazil
    MS-Off Ver
    Excel 2010
    Posts
    1,862

    Re: Find Data in Form

    I am very happy, thank you!

    Arquivo = File
    Português English

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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