+ Reply to Thread
Results 1 to 5 of 5

VBA to filter from today's date + 4 business days

  1. #1
    Registered User
    Join Date
    07-15-2015
    Location
    Indonesia
    MS-Off Ver
    2013
    Posts
    30

    VBA to filter from today's date + 4 business days

    Hello gurus,

    I just want to filter my data from today's date + 4 business days.

    for example if today's date is 5/19/2016, the filter should be from 5/19/2016 - 5/252016

    I've attached my file.

    Thanks in advance!
    Attached Files Attached Files

  2. #2
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2404 Win 11 Home 64 Bit
    Posts
    23,865

    Re: VBA to filter from today's date + 4 business days

    If you use the Data Filter Icon on the Ribbon, you can then filter using the between command in the drop down when you click on the down arrow in the date column. There is no need for a Macro when this functionality is built into Excel.
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  3. #3
    Registered User
    Join Date
    07-15-2015
    Location
    Indonesia
    MS-Off Ver
    2013
    Posts
    30

    Re: VBA to filter from today's date + 4 business days

    Hi Alan,

    Yes i know that, but i want it to be automated.

  4. #4
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2404 Win 11 Home 64 Bit
    Posts
    23,865

    Re: VBA to filter from today's date + 4 business days

    Record a Macro and then if it does not do exactly what you want, post it here for tweaking.

  5. #5
    Registered User
    Join Date
    07-15-2015
    Location
    Indonesia
    MS-Off Ver
    2013
    Posts
    30

    Re: VBA to filter from today's date + 4 business days

    Anyone can help me please?

    I've record a macro and I came up with this but I want to be flexible/dynamic
    Please Login or Register  to view this content.
    Last edited by kop1ko; 05-19-2016 at 07:27 AM.

+ 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. # of business days between timestamp & another date
    By daisydaisy in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 02-13-2015, 11:20 AM
  2. vba to filter table by today's date up to 10 days. and save as new version
    By The Fly in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-01-2014, 02:15 PM
  3. Replies: 4
    Last Post: 05-19-2014, 04:28 PM
  4. [SOLVED] Create a macro to filter between today and the next 30 days
    By jonathan.haynes in forum Excel Programming / VBA / Macros
    Replies: 13
    Last Post: 08-05-2013, 05:08 AM
  5. Due date is 6 business days
    By Wzbell in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 05-30-2007, 07:55 PM
  6. business days - trade date plus 3
    By clegge in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 01-11-2006, 12:40 PM
  7. [SOLVED] business days between 2 date feilds
    By JRS in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 03-12-2005, 04:06 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