+ Reply to Thread
Results 1 to 2 of 2

vba to filter table by today's date up to 10 days. and save as new version

  1. #1
    Registered User
    Join Date
    07-08-2014
    Location
    Texas
    MS-Off Ver
    2013
    Posts
    40

    vba to filter table by today's date up to 10 days. and save as new version

    I have a table that is imported to excel from the internet. I need to filter the due date column (column 7) by todays date up to 10 days out and I would like to save as an xlsm doc that will vary in its file name each time it is saved to the given folder. Any help would be appreciated


    Sub Dater()

    Dim Sh As Worksheet
    Set Sh = Worksheets("Pending Approval by Responsible")
    With Sh.Range("A3").CurrentRegion
    Range("A3").Select
    Selection.AutoFilter
    .AutoFilter Field:=7, Criteria1:=">=" & CLng(Date), Operator:=xlAnd, Criteria2:="<=" & CLng(Date + 10)
    End With
    End Sub

  2. #2
    Registered User
    Join Date
    07-08-2014
    Location
    Texas
    MS-Off Ver
    2013
    Posts
    40

    Re: vba to filter table by today's date up to 10 days. and save as new version

    I have answered my own question.. Thanks

+ 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. Replies: 4
    Last Post: 05-08-2014, 10:13 AM
  2. [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
  3. [SOLVED] Macros for: If Today's Date minus other date is greater than certain amount of days Then
    By lottidotti in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 10-24-2012, 04:46 PM
  4. create a macro to alert me if today's date is within 5 days of expected delivery date
    By ashmcclure in forum Excel Programming / VBA / Macros
    Replies: 25
    Last Post: 09-25-2008, 05:51 PM
  5. Insert a static version of today's date that doesn't update itself
    By cannon_lab in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-19-2007, 08:25 AM

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