Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #6   Report Post  
Posted to microsoft.public.word.docmanagement
macropod[_2_] macropod[_2_] is offline
external usenet poster
 
Posts: 2,059
Default How do i unlink all of the fields in an MS-Word 2007 document?

Hi byafuso,

Ctrl-A followed by Ctrl-Shift-F9 will only unlink fields in-line with text in the body of the document. It won't affect fields in
headers, footers, or floating shape objects (eg a hyperlink attached to an image formatted as 'square'). Here's a macro to do the
job for you:

Sub UnlinkAll()
Dim oRng As Range, hLink As Hyperlink
Application.ScreenUpdating = False
With ActiveDocument
' Loop through Story Ranges and update.
' Note that this may trigger interactive fields (eg ASK and FILLIN).
For Each oRng In .StoryRanges
Do
oRng.Fields.Unlink
For Each hLink In oRng.Hyperlinks
hLink.Delete
Next
Set oRng = oRng.NextStoryRange
Loop Until oRng Is Nothing
Next
End With
Application.ScreenUpdating = True
End Sub

--
Cheers
macropod
[Microsoft MVP - Word]


"byafuso" wrote in message ...
I used to be able to do this in MS-Word 2003 by doing a "select all" and
pressing ctrl+shift+F9, but that doesn't seem to work any more. At
least it doesn't seem to get rid of hyperlinks to button pictures.

Am I doing something wrong, or was this feature disabled in MS-Word 2007?

Thanks


 
Thread Tools
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Word 2007 - Can't Unlink Header Victoria@DIG Page Layout 10 May 2nd 23 02:49 AM
How do you automatically unlink field codes in a locked document Brent Microsoft Word Help 1 September 12th 09 06:56 PM
How to unlink Word 2003 documents Rushinbear Microsoft Word Help 1 January 27th 07 05:11 PM
unlink endnotes in my document Roger Microsoft Word Help 1 August 19th 06 10:45 PM
lock/unlink MailMerge.fields in header S.P. Mailmerge 6 April 1st 05 05:53 PM


All times are GMT +1. The time now is 02:26 PM.

Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 Microsoft Office Word Forum - WordBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Word"