View Full Version : How to change words in Header/Footer from Excel
jazzyt2u
07-25-2008, 10:15 AM
I will need to change certain words in the header and footer in Word but need the code to be in Excel.
Also can I place a Heading in the Header to be used in the TOC? If so how do I show that it's a heading?
Thanks
jazzyt2u
10-07-2008, 04:21 PM
oDoc.ActiveWindow.ActivePane.View.SeekView = 9 'This opens the header on the current page
With oWord.Selection.Find
.ClearFormatting
.Replacement.ClearFormatting
.Text = "ReportName"
.Replacement.Text = MyRpt
.Forward = True
.Execute Replace:=1
End With
oDoc.ActiveWindow.ActivePane.View.SeekView = 0 'This closes the header
Powered by vBulletin® Version 4.2.5 Copyright © 2025 vBulletin Solutions Inc. All rights reserved.