change tab stops on all footers

M

mouac01

I need help to change the tab stops on all the footers in the document.
We upgraded from 2000 to 2003 and somehow that messed up the tab
stops. Here's what I have so far. It only works one page at a time.
Thanks... CM

Sub Macro1()

Dim objSection As Section

For Each objSection In ActiveDocument.Sections
With objSection.Footers(wdHeaderFooterPrimary)
ActiveWindow.ActivePane.View.SeekView = wdSeekCurrentPageHeader
If Selection.HeaderFooter.IsHeader = True Then
ActiveWindow.ActivePane.View.SeekView =
wdSeekCurrentPageFooter
Else
ActiveWindow.ActivePane.View.SeekView =
wdSeekCurrentPageHeader
End If
Selection.MoveUp Unit:=wdLine, Count:=1
Selection.MoveDown Unit:=wdLine, Count:=1
Selection.MoveDown Unit:=wdLine, Count:=10, Extend:=wdExtend
ActiveDocument.DefaultTabStop = InchesToPoints(0.5)
With Selection.ParagraphFormat
.TabStops.ClearAll
.TabStops.Add Position:=InchesToPoints(3.25),
Alignment:=wdAlignTabCenter, Leader:=wdTabLeaderSpaces
.TabStops.Add Position:=InchesToPoints(6.5),
Alignment:=wdAlignTabRight, Leader:=wdTabLeaderSpaces
.LeftIndent = InchesToPoints(0)
.RightIndent = InchesToPoints(0)
.FirstLineIndent = InchesToPoints(0)
.SpaceBeforeAuto = False
.SpaceAfterAuto = False
End With
End With
Next

End Sub
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

create macro? 4
Macro to fix header 0
Multiple Tables 2
TOC Question 3
Variable question 2
Please help!!! No replies - Posting query again 0
Bullet Styles Macro 0
Tab stop weirdness 8

Top