View Single Post
  #7   Report Post  
OleRasmussen OleRasmussen is offline
Junior Member
 
Posts: 0
Default

Quote:
Originally Posted by Graham Mayor View Post
The following macro will unlink
all the fields in the document

Dim oStory As Range
For Each oStory In ActiveDocument.StoryRanges
oStory.Fields.Update
If oStory.StoryType wdMainTextStory Then
While Not (oStory.NextStoryRange Is Nothing)
Set oStory = oStory.NextStoryRange
oStory.Fields.Unlink
Wend
End If
Next oStory
Set oStory = Nothing.

This is great - I can really use this too, but I find, that it "only" unlinks fields on the actual "frontpage" of the document - I have fields I'd like to unlink in both the header and the frontpage - and they are in textboxes to make things more complicated :-) Can the macro be modified in order to reach such items too?

Thanky you very much in advance!