In Word 2000, can you unlink a specified field throughout the document in one
shot?

Re: Unlinking Fields by Stefan

Stefan
Wed Oct 04 08:07:29 CDT 2006

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?





Re: Unlinking Fields by KarenVM

KarenVM
Wed Oct 04 09:01:02 CDT 2006

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?
>
>
>
>
>

Re: Unlinking Fields by Greg

Greg
Wed Oct 04 16:12:45 CDT 2006

See:
http://gregmaxey.mvps.org/Field_Macros.htm

--
Greg Maxey/Word MVP
See:
http://gregmaxey.mvps.org/word_tips.htm
For some helpful tips using Word.

"Karen VM" <KarenVM@discussions.microsoft.com> 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?
>>
>>
>>
>>
>>



Re: Unlinking Fields by Stefan

Stefan
Thu Oct 05 02:24:16 CDT 2006

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

--
Stefan Blom
Microsoft Word MVP


"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?
> >
> >
> >
> >
> >




Re: Unlinking Fields by Stefan

Stefan
Thu Oct 05 04:08:54 CDT 2006

"Stefan Blom" wrote in message
news:edqIF9E6GHA.2380@TK2MSFTNGP02.phx.gbl...
> Graham's article provides examples for searching all stories of a
> document.

Correction: Greg's article.

Sorry!

--
Stefan Blom
Microsoft Word MVP




> 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
>
> --
> Stefan Blom
> Microsoft Word MVP
>
>
> "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?
> > >
> > >
> > >
> > >
> > >
>
>
>





Re: Unlinking Fields by Greg

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?