I
Ian B
Hi
I wrote a routine many years ago which has worked fine.
I now have to insert another string in the footer using a different font
size.
I've experimented for hours but my footer always ends up with all footer
text at 16 pts.
The documents are very large with up to 30 sections so to actually
manipulate the footers by opening them and inserting required text is
unacceptably slow..
See my attempts below:
I think I need to introduce a selection into the footer, but the footers(xx)
works only with a range and that range seems to be the whole footer.
I think I'm "dead in the water", but any help much appreciated.
Cheers
Ian B
~~~~~~~~~~~~~~
With ActiveDocument.Sections(lS).Footers(wdHeaderFooterFirstPage).Range
.Paragraphs.TabStops.ClearAll
.Font.Size = 8
.ParagraphFormat.TabStops.Add Position:=CentimetersToPoints(17),
Alignment:=wdAlignTabRight, Leader:=wdTabLeaderSpaces
.InsertAfter Text:=sPath & vbTab & "_________Initials" & vbCrLf
End With
With ActiveDocument.Sections(lS).Footers(wdHeaderFooterPrimary).Range
.Font.Size = 16
Selection.InsertAfter Text:=sInsertString
End With
I wrote a routine many years ago which has worked fine.
I now have to insert another string in the footer using a different font
size.
I've experimented for hours but my footer always ends up with all footer
text at 16 pts.
The documents are very large with up to 30 sections so to actually
manipulate the footers by opening them and inserting required text is
unacceptably slow..
See my attempts below:
I think I need to introduce a selection into the footer, but the footers(xx)
works only with a range and that range seems to be the whole footer.
I think I'm "dead in the water", but any help much appreciated.
Cheers
Ian B
~~~~~~~~~~~~~~
With ActiveDocument.Sections(lS).Footers(wdHeaderFooterFirstPage).Range
.Paragraphs.TabStops.ClearAll
.Font.Size = 8
.ParagraphFormat.TabStops.Add Position:=CentimetersToPoints(17),
Alignment:=wdAlignTabRight, Leader:=wdTabLeaderSpaces
.InsertAfter Text:=sPath & vbTab & "_________Initials" & vbCrLf
End With
With ActiveDocument.Sections(lS).Footers(wdHeaderFooterPrimary).Range
.Font.Size = 16
Selection.InsertAfter Text:=sInsertString
End With