L
Legal Learning
I have a wonderful macro that I built for my client that removes the footer
they wanted as a default. It works great. However, now they want the
default to be no footer and to put one in that looks like the following in 10
pt font.
Page 1 of 3--12/2/2008--12:48:13PM--file and path
See my code below for the remove footer macho
Dim pRange As Word.Range
For Each pRange In ActiveDocument.StoryRanges
Do Until (pRange Is Nothing)
Select Case pRange.StoryType
Case wdFirstPageFooterStory, _
wdPrimaryFooterStory, wdEvenPagesFooterStory
On Error Resume Next
pRange.Tables(1).Cell(1, 1).Range.Delete
On Error GoTo 0
Case Else
'Do nothing
End Select
Set pRange = pRange.NextStoryRange
Loop
Next
Any help is GREATLY appreciated!
they wanted as a default. It works great. However, now they want the
default to be no footer and to put one in that looks like the following in 10
pt font.
Page 1 of 3--12/2/2008--12:48:13PM--file and path
See my code below for the remove footer macho
Dim pRange As Word.Range
For Each pRange In ActiveDocument.StoryRanges
Do Until (pRange Is Nothing)
Select Case pRange.StoryType
Case wdFirstPageFooterStory, _
wdPrimaryFooterStory, wdEvenPagesFooterStory
On Error Resume Next
pRange.Tables(1).Cell(1, 1).Range.Delete
On Error GoTo 0
Case Else
'Do nothing
End Select
Set pRange = pRange.NextStoryRange
Loop
Next
Any help is GREATLY appreciated!