+ Reply to Thread
Results 1 to 11 of 11

Date Filter Box Options

  1. #1
    Registered User
    Join Date
    03-26-2019
    Location
    United States
    MS-Off Ver
    2010
    Posts
    17

    Date Filter Box Options

    Is there any way to keep the date filter box showing after selecting "OK"?

    For instance, if I want to place filters on my data showing the first 3 months of the year - is there any way to keep that box visible so I know which range I am looking at?

    I have attached the box I am referencing. I would like that to remain visible after selecting "OK", instead of going away completely.

    Thanks!
    Attached Images Attached Images

  2. #2
    Forum Expert Keebellah's Avatar
    Join Date
    01-12-2014
    Location
    The Netherlands
    MS-Off Ver
    Office 2021 (Windows)
    Posts
    7,905

    Re: Date Filter Box Options

    With box, do you mean a userform?
    Yes you can keep it visible set ShowModal = False so you can click on the sheet and continue
    The screenshot is of another userform but just an idea
    Attached Images Attached Images
    ---
    Hans
    "IT" Always crosses your path!
    May the (vba) code be with you... if it isn't; start debugging!
    If you like my answer, Click the * below to say thank-you

  3. #3
    Registered User
    Join Date
    03-26-2019
    Location
    United States
    MS-Off Ver
    2010
    Posts
    17

    Re: Date Filter Box Options

    Thank you for the reply!

    The box I had attached was actually just from clicking on "Date Between" under filters. My ideal end goal is to have a start/end date box that will allow users to filter the data based on what they put in those boxes, but to remain visible for the user to know which dates they selected for their filters.

    I would love to be able to have a Userform that includes the option for a Start and End date to then filter, but I'm not savvy enough to understand how that works.

  4. #4
    Forum Expert Keebellah's Avatar
    Join Date
    01-12-2014
    Location
    The Netherlands
    MS-Off Ver
    Office 2021 (Windows)
    Posts
    7,905

    Re: Date Filter Box Options

    I think that's possible, can you post a sample file and show there what you want the filter to do? I'll try and see then if I can do something for you

  5. #5
    Registered User
    Join Date
    03-26-2019
    Location
    United States
    MS-Off Ver
    2010
    Posts
    17

    Re: Date Filter Box Options

    Thank you for your help! I have attached a spreadsheet that is very paired down with 'dummy' data included. The "dates" I want to be able to filter by are in the Raw Data tab under the column "Lead Date".
    Attached Files Attached Files

  6. #6
    Forum Expert Keebellah's Avatar
    Join Date
    01-12-2014
    Location
    The Netherlands
    MS-Off Ver
    Office 2021 (Windows)
    Posts
    7,905

    Re: Date Filter Box Options

    With the 'filter form only be applied to the Raw Data tab? So only if this sheet is active the box should show?

  7. #7
    Registered User
    Join Date
    03-26-2019
    Location
    United States
    MS-Off Ver
    2010
    Posts
    17

    Re: Date Filter Box Options

    I actually would like to hide all of the tabs outside of the first one titled 'Dashboard'. That is where I would like the Userform with Start/End Dates to live, but it would be pulling from the "Lead Date" in the Raw Data tab, that then populates the pivot table/slicers. So essentially, a user would just input whatever data range they'd like on the dashboard tab, and it would filter accordingly. Hope this makes sense, sorry I didn't explain it very well!

  8. #8
    Forum Expert Keebellah's Avatar
    Join Date
    01-12-2014
    Location
    The Netherlands
    MS-Off Ver
    Office 2021 (Windows)
    Posts
    7,905

    Re: Date Filter Box Options

    First let's see if this works at all.
    Due to my system's date settings the filter is not working well with the cell format
    For now what this does is show the form the moment the Raw Data sheet is selected.
    As long as you do not close the form it remains in place while you filter and do other things.
    If by accident you close the form then just Right-click the column header Lead Date cell for it to reappear.
    I will probably work if you invoke it from your dashboard but I don't know if Auofilter works on hidden tabs., you'll have to test that.
    You will also have to look for a way to only list unique dates and sorted ascending but that's more code work.
    I've attached the screen capture and the modified file
    It's past midnight and I'm off to bed now.
    Attached Images Attached Images
    Attached Files Attached Files

  9. #9
    Forum Expert Keebellah's Avatar
    Join Date
    01-12-2014
    Location
    The Netherlands
    MS-Off Ver
    Office 2021 (Windows)
    Posts
    7,905

    Re: Date Filter Box Options

    Give this a test, it needs tweaking but it does the filtering, it's for you so apply it in the Dashboard
    The selection form opens when DashBoard is activated or when the workbook is first opened.
    Right-click C2 to show the form if you closed it by accident.
    If there is a filter applied to Raw Data it will be shown in the selection.
    Attached Files Attached Files

  10. #10
    Registered User
    Join Date
    03-26-2019
    Location
    United States
    MS-Off Ver
    2010
    Posts
    17

    Re: Date Filter Box Options

    Thanks, Keebellah!
    I appreciate all of the work you put into this. I think with a few tweaks, this should be able to allow for what I'm hoping to do!
    Truly, I wouldn't have been able to do this without your expertise, so I am grateful.

  11. #11
    Forum Expert Keebellah's Avatar
    Join Date
    01-12-2014
    Location
    The Netherlands
    MS-Off Ver
    Office 2021 (Windows)
    Posts
    7,905

    Re: Date Filter Box Options

    Happy coding
    I'm not so hot on slicers but I think you'll manage seen what you've done so far.
    You know where to find me

+ 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. Advanced Filter Options (VBA)
    By Beast_OnThe_Keys in forum Excel General
    Replies: 3
    Last Post: 03-05-2019, 03:11 AM
  2. Printing out all of the different filter options
    By kbschick in forum Excel General
    Replies: 3
    Last Post: 09-12-2018, 11:59 PM
  3. [SOLVED] how to clean up my filter options?
    By eeps24 in forum Excel General
    Replies: 1
    Last Post: 02-03-2017, 11:13 AM
  4. Replies: 0
    Last Post: 03-20-2015, 11:39 AM
  5. file filter options
    By bruizer31 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 06-05-2013, 10:44 PM
  6. Filter Options
    By vidthas in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-24-2011, 08:49 AM
  7. Filter options
    By Aland2929 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-03-2010, 11:32 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