Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Breaking Links in Word 1

Status
Not open for further replies.

moontho

Technical User
Jun 4, 2003
85
GB
I'm able to break links in a word document from excel using:-

With ActiveDocument.Sections(1).Range.Fields
.Unlink
End With

Where "1" is the section of the document where the links are to be broken.

Where i'm having a problem is trying to break the links in a header or footer!

Any suggestions would be greatly appreciated.

Thanks, Thom
 
Hi Moontho,

Allowing for the fact that you might have multiple header fields (1st page, odd, even):

For Each oHeadFld In ActiveDocument.Sections(1).Headers
oHeadFld.Range.Fields.Unlink
Next

Cheers
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top