Greg
Thu Oct 05 05:30:21 CDT 2006
Stefan,
Apparently you where paying closer attention to the question than me ;-)
I will add an example of looking to this level in the article when I get a
chance.
Thanks.
--
Greg Maxey/Word MVP
See:
http://gregmaxey.mvps.org/word_tips.htm
For some helpful tips using Word.
Stefan Blom wrote:
> Graham's article provides examples for searching all stories of a
> document. But, as far as I can tell, it does not explain how to find a
> specific "flavor" of a field, for example, how to find { DOCPROPERTY
> "Compound" } but not { DOCPROPERTY "Title" }. For that, you would have
> to investigate the field code directly:
>
> If Instr(UCase$(f.Code.Text), "COMPOUND") Then
> f.Unlink
> End If
>
>
> "Karen VM" wrote in message
> news:33C37CCB-E583-4CD4-9BAD-54D2A7EFE4CC@microsoft.com...
>> Well this worked for the fields in the main text, but how do I
>> unlink in headers too? Also, my field is DocProperty for which I
>> have several custom codes, eg, DocProperty "Compound", DocProperty
>> "Species" etc... How can I specify a specific code to unlink? Thanks
>> so much for your prompt help - I've spent 2 days trying to figure
>> this out as a "newbie"
>>
>> "Stefan Blom" wrote:
>>
>>> Sure. To unlink all SEQ fields, for example, use this macro:
>>>
>>> Dim f As Field
>>> For Each f In ActiveDocument.Fields
>>> If f.Type = wdFieldSequence Then
>>> f.Unlink
>>> End If
>>> Next f
>>>
>>> --
>>> Stefan Blom
>>> Microsoft Word MVP
>>>
>>>
>>> "Karen VM" wrote in message
>>> news:83CE2D3F-DFD9-4089-8A8A-F5900026A350@microsoft.com...
>>>> In Word 2000, can you unlink a specified field throughout the
>>>> document in one shot?