Logo 
Search:

MS Office Answers

Ask Question   UnAnswered
Home » Forum » MS Office       RSS Feeds
  Question Asked By: Caleb Smith   on Jan 27 In MS Office Category.

  
Question Answered By: Addison Campbell   on Jan 27

This may help you get going.



Dim Date1 As String

Dim Date2 As String



Date1 = ">=" & Range("C1").Value

Date2 = "<=" & Range("D1").Value



Range("A:A").Select 'Assuming column A stores your dates



Selection.AutoFilter Field:=1, Criteria1:=Date1, Operator:=xlAnd _

, Criteria2:=Date2

Share: 

 
 
Didn't find what you were looking for? Find more on Code for date ranges Or get search suggestion and latest updates.


Tagged: