title: How to get just a portion of the Word.Range.Text
body: <p>I'm using c#.net and word 2007 lib's</p>
  
  <p>I want to be able to grab a portion of the Word.Range.Text and change it without affecting the formatting, text or anything else in the Range.</p>
  
  <p>How would I go about getting a portion of the Word.Range.Text so I can change the text or even just delete that portion of the text?</p>
  
  <p>example:</p>
  
  <p><em>I want this text edited/delete</em> But this portion to be left alone</p>
  
  <p>Solution:
  Ok, Turns out you need to have a "clone" of the paragraph and then by setting the start and end of the range within the cloned variable you are able to set where in the paragraph you want to edit. As follows:</p>
  
  <pre><code>Word.Range clonedRange = parag.Range;
  cloneRange.Start = 0;
  cloneRange.End = 15;
  
  cloneRange.Text = "";
  </code></pre>