Results 1 to 4 of 4
  1. #1
    Lounger
    Join Date
    Jan 2001
    Location
    NJ, USA
    Posts
    36
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Deleting Index Entry Fields (Word 97/Winnt 4)

    Hello,

    This may be a very easy thing to figure out, but I seem to be unable to get it to work! I want to remove all index entry fields from a document. I was using a For Each . . .Next statement and referencing the wdFieldIndexEntry type, but the macro removed ALL fields from the document, not just the specified type. Can anyone help?

    Thanks in advance!

  2. #2
    Plutonium Lounger
    Join Date
    Nov 2001
    Posts
    10,550
    Thanks
    0
    Thanked 7 Times in 7 Posts

    Re: Deleting Index Entry Fields (Word 97/Winnt 4)

    This code works for me...
    <pre>Public Sub DeleteIndexEntries
    Dim fldNext as Field

    For Each fldNext In ActiveDocument.Fields
    If fldNext.Type = wdFieldIndexEntry Then
    fldNext.Delete
    End If
    Next fldNext
    End Sub
    </pre>

    StuartR

  3. #3
    Lounger
    Join Date
    Jan 2001
    Location
    NJ, USA
    Posts
    36
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Deleting Index Entry Fields (Word 97/Winnt 4)

    Thanks! That works perfectly!

  4. #4
    5 Star Lounger
    Join Date
    May 2001
    Location
    Stuttgart, Baden-W, Germany
    Posts
    931
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Deleting Index Entry Fields (Word 97/Winnt 4)

    If you don't want to write a macro, you can also toggle the display to show hidden text, and replace "^d XE" with nothing.

    <img src=/S/cheers.gif border=0 alt=cheers width=30 height=16>Klaus

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •