+ Reply to Thread
Results 1 to 4 of 4

Filter a Date column using VBA

  1. #1
    Registered User
    Join Date
    02-06-2020
    Location
    Canada
    MS-Off Ver
    Excel 2016
    Posts
    2

    Filter a Date column using VBA

    Hi,

    I need to filter a Date column using VBA code and text box.
    The user will type in the text box and the data will filter.

    Below is the code I am using to filter columns that contain text data, and it works as intended:
    Please Login or Register  to view this content.
    What is the code to use to filter a column that contain date data?

    Thank you.
    Last edited by alansidman; 02-06-2020 at 05:47 PM.

  2. #2
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs
    MS-Off Ver
    MS Office 2019
    Posts
    17,740

    Re: Filter a Date column using VBA

    Code Tags Added
    Your post does not comply with Rule 2 of our Forum RULES. Use code tags around code.

    Posting code between [CODE]Please [url=https://www.excelforum.com/login.php]Login or Register [/url] to view this content.[/CODE] tags makes your code much easier to read and copy for testing, it also maintains VBA formatting.

    Highlight your code and click the # icon at the top of your post window. More information about these and other tags can be found at http://www.excelforum.com/forum-rule...rum-rules.html



    (I have added them for you today. Please take a few minutes to read all Forum Rules and comply in the future.)

  3. #3
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs
    MS-Off Ver
    MS Office 2019
    Posts
    17,740

    Re: Filter a Date column using VBA

    Seems you have not read our forum rules that you agreed to when you joined.

    Rule 03: Cross-posting Without Telling Us

    Your post does not comply with Rule 3 of our Forum RULES. Do not cross-post your question on multiple forums without telling us about your threads on other forums.

    Post a link to any other forums where you have asked the same question.

    Cross-posting is when you post the same question in other forums on the web. The last thing you want to do is waste people's time working on an issue you have already resolved elsewhere. We prefer that you not cross-post at all, but if you do (and it's unlikely to go unnoticed), you MUST provide a link (copy the url from the address bar in your browser) to the cross-post.

    Read this to understand why we ask you to do this.

    I have added the crosspost reference for you today. Please comply with this and all our rules in the future

    https://www.ozgrid.com/forum/index.p...umn-using-vba/..

    https://www.mrexcel.com/board/thread...g-vba.1123285/
    Last edited by alansidman; 02-06-2020 at 06:19 PM.

  4. #4
    Registered User
    Join Date
    02-06-2020
    Location
    Canada
    MS-Off Ver
    Excel 2016
    Posts
    2

    Re: Filter a Date column using VBA

    I will try to follow the rules.

    Thank you.

+ 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. Use filter to filter last 7 days in a date column
    By Triscia in forum Excel General
    Replies: 10
    Last Post: 09-21-2017, 12:54 PM
  2. Want to filter in column using date in cell
    By sharadmaxwell in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-31-2016, 12:03 PM
  3. Date filter not listing all months in column
    By Ochimus in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 10-17-2015, 12:19 PM
  4. filter by year only in date column
    By skalaima in forum Excel General
    Replies: 2
    Last Post: 05-15-2013, 04:52 PM
  5. [SOLVED] find a column by date and filter that column by removing blanks
    By rsami in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 03-28-2013, 10:56 PM
  6. [SOLVED] Adjust Macro To Filter Column By Date
    By JimmiOO in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 11-30-2012, 10:36 AM
  7. Filter Row using Date and Column using Null Cells
    By lui_roc in forum Excel General
    Replies: 0
    Last Post: 06-10-2008, 12:15 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