title: Take values under the range of the column with a specific name "Statu"
body: <p>I need to make the change that part of this line: <code>If ThisWorkbook.Sheets(&quot;Details&quot;).Range(&quot;V&quot; &amp; counter) = &quot;KO&quot; And _</code>.
  That part where it states <code>Range(&quot;V&quot; &amp; counter)</code> , i need to make it take values under a specific column in the sheet which starts with &quot;Statu&quot;
  Below is my code any ideas how can i proceed thanks.</p>
  <pre><code>  Function not_processed() As Double
      Dim counter As Double
      not_processed = 0
      counter = 2
      Do While ThisWorkbook.Sheets(&quot;Details&quot;).UsedRange.Rows.count &gt;= counter
          If ThisWorkbook.Sheets(&quot;Details&quot;).Range(&quot;V&quot; &amp; counter) = &quot;KO&quot; And _
          ThisWorkbook.Sheets(&quot;Details&quot;).Range(&quot;b&quot; &amp; counter) &lt;&gt; &quot;&quot; Then
              not_processed = not_processed + 1
          End If
          counter = counter + 1
      Loop
  End Function
  </code></pre>