title: Filtering between two dates in excel vba
body: <p>I need help to filter between two dates and it's giving me an error: </p>
  
  <blockquote>
    <p>Named argument not found</p>
  </blockquote>
  
  <p><strong>my code</strong></p>
  
  <pre><code>Dim StartDate As String
  Dim EndDate As String
  '
  StartDate = Date
  EndDate = Date + 365
  '
  ActiveSheet.AutoFilter Field:=7, Criteria1:="&gt;=StartDate", Operator:=xlAnd, Criteria2:="&lt;=EndDate"
  </code></pre>
  
  <p>Any help would be much appreciated!</p>