+ Reply to Thread
Results 1 to 11 of 11

Filter data based on data in textboxes in userform and move to a new workbook

  1. #1
    Forum Contributor
    Join Date
    02-26-2013
    Location
    Philippines
    MS-Off Ver
    Excel 2007
    Posts
    367

    Filter data based on data in textboxes in userform and move to a new workbook

    Hello,

    I have a userform with a monthview that populate it's value in a textboxes.

    How can i filter the data based on the dates on the textboxes and then move it in a new workbook?

    For ex: textbox1 = 03/01/2014 and textbox2 = 03/02/2014, then the data will be filtered only on that date and then move it in a new workbook.

    I've attached my file

    Thanks in advance.
    Attached Files Attached Files

  2. #2
    Forum Contributor
    Join Date
    02-26-2013
    Location
    Philippines
    MS-Off Ver
    Excel 2007
    Posts
    367

    Re: Filter data based on data in textboxes in userform and move to a new workbook

    Can anyone help me on this please?

  3. #3
    Forum Contributor
    Join Date
    02-26-2013
    Location
    Philippines
    MS-Off Ver
    Excel 2007
    Posts
    367

    Re: Filter data based on data in textboxes in userform and move to a new workbook

    Hello Gurus,

    can anyone help me on this please

  4. #4
    Forum Contributor
    Join Date
    02-26-2013
    Location
    Philippines
    MS-Off Ver
    Excel 2007
    Posts
    367

    Re: Filter data based on data in textboxes in userform and move to a new workbook

    Please help

  5. #5
    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: Filter data based on data in textboxes in userform and move to a new workbook

    Hi puuts

    The File you attached tells us nothing of what you're trying to do.

    Please attach a sample file that represents what you have. The structure of your attachment should be the same structure as your actual data. Any proprietary information should be changed.

    Include in the attachment any code you're currently using (whether it works or not) and an "After" worksheet that demonstrates what you wish the output to be.
    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.

  6. #6
    Forum Contributor
    Join Date
    02-26-2013
    Location
    Philippines
    MS-Off Ver
    Excel 2007
    Posts
    367

    Re: Filter data based on data in textboxes in userform and move to a new workbook

    Hi jaslake,

    Basically the textboxes in the userform will indicate the date (timestamp field in Sheet1) to be filtered.
    For example, textbox1 is "03/01/2014" and textbox2 is "03/02/2014" then the "Generate" button will perform:

    1. Filter range B & C of sheet1 according to the value of textbox1 and textbox2
    2. After filtering, copy the filtered data in a new workbook.

  7. #7
    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: Filter data based on data in textboxes in userform and move to a new workbook

    Hi puuts

    Try the Code in the attached...
    Attached Files Attached Files

  8. #8
    Forum Contributor
    Join Date
    02-26-2013
    Location
    Philippines
    MS-Off Ver
    Excel 2007
    Posts
    367

    Re: Filter data based on data in textboxes in userform and move to a new workbook

    Hi jaslake,

    Thanks for that, but needs a little modification, basically the value of the textbox1 (from) and textbox2 (to) is come from the user. What i mean is, the user choose the date by pressing the 'Calendar1' button and 'Calendar2' button and data will be filtered on that date.

    I've attached the modified template.
    Attached Files Attached Files

  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: Filter data based on data in textboxes in userform and move to a new workbook

    Hi puuts

    Look at Post #5...

  10. #10
    Forum Contributor
    Join Date
    02-26-2013
    Location
    Philippines
    MS-Off Ver
    Excel 2007
    Posts
    367

    Re: Filter data based on data in textboxes in userform and move to a new workbook

    Hi jaslake,

    I'm attaching the file.
    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: Filter data based on data in textboxes in userform and move to a new workbook

    Hi puuts

    Try the Code in the attached...
    Attached Files Attached Files

+ 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. [SOLVED] Move data from SHEET1 to SHEET2 based on Selected criteria...like an adv filter
    By gspivey79 in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 10-03-2012, 02:06 PM
  2. Link userform textboxes to sheet data
    By Shijo Joseph in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-07-2012, 02:17 AM
  3. Data Validation for all TextBoxes and Comboboxes in Userform
    By singhabhijitkumar in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 08-12-2010, 05:48 PM
  4. Copy Data From Userform Textboxes to Sheet
    By markrennolds in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 03-22-2010, 10:50 PM
  5. Reading data from many TextBoxes in UserForm
    By adashiu in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 11-30-2008, 08:58 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