title: Create Footer in Word Doc with VBA and Right Align
body: <p>I am creating a word doc using VBA, and I just need to edit the header/footers. When I run the VBA below, the footer is centered... how do I right-align it? Thanks!</p>
  
  <pre><code>With ActiveDocument.Sections(1)
  .Headers(wdHeaderFooterPrimary).range.Text = DocName
  .Headers(wdHeaderFooterPrimary).range.Font.Name = "Arial"
  .Headers(wdHeaderFooterPrimary).range.Font.size = 9
  .Footers(wdHeaderFooterPrimary).range.Text = Format(Date, "Long Date") 
  .Footers(wdHeaderFooterPrimary).range.Font.Name = "Arial"
  .Footers(wdHeaderFooterPrimary).range.Font.size = 9
  End With
  </code></pre>