beelte54
03-11-2008, 10:28 AM
I need to add a logo that already exists on the document, to the header of a word document on demand. Below is the following code that I'm using. Its just a sample on who to add text. How to I add a logo in side of a header on word.
Thanks in advance.
Set docActive = objWord.ActiveDocument
objWord.ActiveDocument.ActiveWindow.ActivePane.View.SeekView = wdSeekCurrentPageHeader
objWord.Selection.Sections(1).Headers(1).Range.Text = "Test"
objWord.ActiveDocument.ActiveWindow.View.SeekView = wdSeekMainDocument
With docActive.PageSetup
.DifferentFirstPageHeaderFooter = False'Set this to false will put text on first page, else will not.
EndWith
Thanks in advance.
Set docActive = objWord.ActiveDocument
objWord.ActiveDocument.ActiveWindow.ActivePane.View.SeekView = wdSeekCurrentPageHeader
objWord.Selection.Sections(1).Headers(1).Range.Text = "Test"
objWord.ActiveDocument.ActiveWindow.View.SeekView = wdSeekMainDocument
With docActive.PageSetup
.DifferentFirstPageHeaderFooter = False'Set this to false will put text on first page, else will not.
EndWith