Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Word / Programming / October 2006

Tip: Looking for answers? Try searching our database.

Unlinking Fields

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Karen VM - 04 Oct 2006 14:02 GMT
In Word 2000, can you unlink a specified field throughout the document in one
shot?
Stefan Blom - 04 Oct 2006 14:07 GMT
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

Signature

Stefan Blom
Microsoft Word MVP

> In Word 2000, can you unlink a specified field throughout the
> document in one shot?
Karen VM - 04 Oct 2006 15:01 GMT
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"

> Sure. To unlink all SEQ fields, for example, use this macro:
>
[quoted text clipped - 7 lines]
> > In Word 2000, can you unlink a specified field throughout the
> > document in one shot?
Greg Maxey - 04 Oct 2006 22:12 GMT
See:
http://gregmaxey.mvps.org/Field_Macros.htm

Signature

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

> 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
[quoted text clipped - 14 lines]
>> > In Word 2000, can you unlink a specified field throughout the
>> > document in one shot?
Stefan Blom - 05 Oct 2006 08:24 GMT
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

Signature

Stefan Blom
Microsoft Word MVP

> 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
[quoted text clipped - 13 lines]
> > > In Word 2000, can you unlink a specified field throughout the
> > > document in one shot?
Stefan Blom - 05 Oct 2006 10:08 GMT
> Graham's article provides examples for searching all stories of a
> document.

Correction: Greg's article.

Sorry!

Signature

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
[quoted text clipped - 26 lines]
> > > > In Word 2000, can you unlink a specified field throughout the
> > > > document in one shot?
Greg Maxey - 05 Oct 2006 11:30 GMT
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.

Signature

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

> 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
[quoted text clipped - 28 lines]
>>>> In Word 2000, can you unlink a specified field throughout the
>>>> document in one shot?

Rate this thread:






 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.