| |
jbrek
Posts: 1
Score: 0
Joined: 7/29/2008
Status: offline
|
the Script adds a footer to a new word document. I am try to put Last Save Date and Filename in the footer. No matter what i try the second WDfield always overwrite the first one. What must i do to add multiply WDfields to a footer. Const wdFieldFileName = 29 Const wdFieldSaveDate = 22 Set objWord = CreateObject("Word.Application") objWord.Visible = True Set objDoc = objWord.Documents.Add() objDoc.Fields.Add objDoc.Sections(1).footers(1).Range, wdFieldSaveDate objDoc.Sections(1).footers(1).Range.ParagraphFormat.Alignment = 1 objDoc.Fields.Add objDoc.Sections(1).footer(1).Range, wdFieldFileName objDoc.Sections(1).footer(1).Range.ParagraphFormat.Alignment = 2
|
|