title: VBA Filter the selection
body: <pre><code>Dim data_text As String
  data_text = Analiza_Date.TextBox6.Value
  
  Worksheets("PE_Centralizare").Activate
  Range("A3").Select
  Range(Selection, Selection.End(xlDown)).Select
  Range(Selection).AutoFilter field:=1, Criteria1:=data_text
  </code></pre>
  
  <p>I want to filter only the selection of column "A3" .</p>
  
  <p>VBA mark with yellow color the last row:</p>
  
  <pre><code>Range(Selection).AutoFilter field:=1, Criteria1:=data_text
  </code></pre>