title: Using word vba to format parts of table cell text
body: <p>I'm using the following code to combine text from two excel cells into a word table cell. I want to format the first part (captionStr) as bold but can't seem to figure out how to specify just that part of the range.</p>
  
  <p>I tried <code>.Range(0,Len(captionStr)).Font.Bold=True</code> and <code>.Range.Characters(0,Len(captionStr)).Font.Bold=True</code> but both give me "wrong number of argument" errors. I'm using Office 2010 with MS Word 14.0 Object Reference</p>
  
  <pre><code>With tbl.Cell(nRow, 2).Range
      .Style = rfpDoc.Styles(wdStyleNormal)
      captionStr = CStr(nSection) + ". " + ActiveCell.Text
      bodyStr = ActiveCell.Offset(0, 1).Text
      .Text = captionStr
      .Range.InsertParagraphAfter
      .Range.InsertAfter(bodyStr)
  End With
  </code></pre>