title: Add Picture to header of Word through vba
body: <p>I am trying to insert a picture to the header of a word file through MS Access VBA. I cannot seem to get the code working:</p>
  
  <pre><code>Sub Insertpictoheader()
      Dim oHeader As Word.HeaderFooter
      Dim sh As Word.Shape, ils As Word.InlineShape
  
      Set oSec = ActiveDocument.Sections(1)
      Set oHeader = oSec.Headers(wdHeaderFooterFirstPage)
      oHeader.Range.InlineShapes.AddPicture "C:\Desktop\Logo.png"
  End Sub
  </code></pre>
  
  <p>Nothing appears, I can get the image into the file but not the header. </p>