GSYardy
01-14-2016, 05:07 PM
I have an existing word letter template that I need to change the logo that is being used for the Header. It seems as if the logo is somehow embedded into the document and I do not know how to change it. There is no path to the existing logo that is listed in the code. "This template was created back in 2000 and has been converted over the years" I have pasted the part of the code that is referring to the header logo. Can anyone help?:ipray::ipray:
Thanks
'If E-mail Format is selected, insert graphics into first page header and footer
If boolEmailFormat = True Then
Selection.HomeKey Unit:=wdStory
ActiveWindow.ActivePane.View.SeekView = wdSeekFirstPageHeader
Selection.HomeKey Unit:=wdStory, Extend:=False
ActiveDocument.AttachedTemplate.AutoTextEntries("HeaderLogo").Insert where:=Selection.Range, RichText:=True
ActiveWindow.ActivePane.View.SeekView = wdSeekFirstPageFooter
Selection.HomeKey Unit:=wdStory, Extend:=False
Selection.TypeParagraph
Selection.ParagraphFormat.SpaceBefore = 6
ActiveDocument.AttachedTemplate.AutoTextEntries("FooterLogo").Insert where:=Selection.Range, RichText:=True
ActiveWindow.ActivePane.View.SeekView = wdSeekMainDocument
Else
Selection.HomeKey Unit:=wdStory
ActiveWindow.ActivePane.View.SeekView = wdSeekFirstPageFooter
Selection.HomeKey Unit:=wdStory, Extend:=False
Selection.ParagraphFormat.SpaceBefore = 72
End If
Thanks
'If E-mail Format is selected, insert graphics into first page header and footer
If boolEmailFormat = True Then
Selection.HomeKey Unit:=wdStory
ActiveWindow.ActivePane.View.SeekView = wdSeekFirstPageHeader
Selection.HomeKey Unit:=wdStory, Extend:=False
ActiveDocument.AttachedTemplate.AutoTextEntries("HeaderLogo").Insert where:=Selection.Range, RichText:=True
ActiveWindow.ActivePane.View.SeekView = wdSeekFirstPageFooter
Selection.HomeKey Unit:=wdStory, Extend:=False
Selection.TypeParagraph
Selection.ParagraphFormat.SpaceBefore = 6
ActiveDocument.AttachedTemplate.AutoTextEntries("FooterLogo").Insert where:=Selection.Range, RichText:=True
ActiveWindow.ActivePane.View.SeekView = wdSeekMainDocument
Else
Selection.HomeKey Unit:=wdStory
ActiveWindow.ActivePane.View.SeekView = wdSeekFirstPageFooter
Selection.HomeKey Unit:=wdStory, Extend:=False
Selection.ParagraphFormat.SpaceBefore = 72
End If