title: How to set Selection.Start in VBA?
body: <p>I have a problem with adjusting selection inside of a table. I have a function that goes through a document word by word to analyze it's contents looking for specific patterns. Unfortunately, in tables <code>Char(7)</code> character breaks the selection - when  it's selected, all cells become selected automatically. To work around this problem I store the proper <code>Selection.Start</code> parameter.</p>
  
  <p>Here is my code:</p>
  
  <pre><code>If InStr(Selection.text, Char(7)) &gt; 0 Then
      Selection.start = selStart
      Selection.End = selStart + (Len(tekst) - 2)
  End If
  </code></pre>
  
  <p>Well, it did not help. I can see, while debugging, that <code>selStart</code> is 441 and <code>Selection.Range.Start</code> is 427 (427 would be the beginning of the cell, when the word I'm looking for is on the position of 441). In the next step... <code>Selection.Start</code> still is 427.</p>
  
  <p>I've also tried another aproach using <code>MoveStart</code> and <code>MoveEnd</code> but no matter what I do, the <code>Selection.Start</code> doesn't change.</p>