-
This is what I use when I need to capture those types of details. How to make it happen for every document I'm not sure.
[CODE]Sub OnCloseAddFooter()
DimFilename AsString
DimSec As Section
Filename= ThisDocument.FullName
ForEach Sec InActiveDocument.Sections
WithSec.Footers(wdHeaderFooterPrimary)
.Range.InsertDateTime DateTimeFormat:="MM/dd/yyyy H:mm", InsertAsField:= _
True,DateLanguage:=wdEnglishUS, CalendarType:=wdCalendarWestern
.Range.Text = .Range.Text &Filename
.PageNumbers.Add
EndWith
NextSec
EndSub
[/CODE]
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules