title: How to change text font style in a Word 2013 Add-In
body: <p>I am developing an add-in for Word 2013 that includes a ribbon. I want to know how can I change text font name and style from the ribbon (i.e. when clicking on a button)</p>
  
  <p>I have this code:</p>
  
  <pre><code>Microsoft.Office.Interop.Word.Range sel =  Globals.ThisAddIn.Application.Selection.Range;
  sel.Font.Bold = 1;
  sel.Font.Name = "Segoe UI";
  </code></pre>
  
  <p>but it is not effecting the text selected.</p>