title: set cursor position in Outlook AddIn using word editor range.select() new mail
body: <p>My code:</p>
  
  <pre><code> public void inspectors_NewInspector(Inspector _Inspector)
      {
          try
          { 
              if (_Inspector.CurrentItem is MailItem)
              {
                  MailItem myMailItem = (MailItem)_Inspector.CurrentItem;
                  myMailItem.HTMLBody = "&lt;html&gt;&lt;table&gt;&lt;tr&gt;&lt;td&gt;cursor&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;&lt;/html&gt;";
                  Inspector insp = myMailItem.GetInspector;
                  insp.Activate();
                  Microsoft.Office.Interop.Word.Find uiFind = insp.WordEditor.Range().Find;
                  uiFind.Text = "cursor";
                  while (uiFind.Execute())
                  {
                      Microsoft.Office.Interop.Word.Range rng = uiFind.Parent;
                      rng.Select();
                      rng.Text = "";
                      break;
                  }
              }
          }
          catch (System.Exception ex)
          {
  
          }
      }
  </code></pre>
  
  <p>It is working for reply and forward to set the cursor position but i'm getting an exception like the screenshot below when new mail is selected. Anyone have any suggestion for getting rid of this error?? </p>
  
  <p><a href="https://i.stack.imgur.com/yQFnQ.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/yQFnQ.png" alt="enter image description here"></a></p>