I'm writing to a Word Document and I want to add a picture and text to the header. I can add the picture with the first line of code, but when I add the second line of code, it writes over the picture and the picture disappears. I would like to insert the picture in the header on the left and the text in the header aligned to the right. Any help would be appreciated.
Thanks,
Code:objDoc.Sections(1).Headers(WdHeaderFooterIndex.wdHeaderFooterPrimary).Shapes.AddPicture(FileName, True, True) objDoc.Sections(1).Headers(WdHeaderFooterIndex.wdHeaderFooterPrimary).Range.Text = "Header Text" objApp.Selection.Paragraphs.Alignment = 2




Reply With Quote
