Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 02-26-2013, 06:50 AM
Bengt Bengt is offline Removing duplicate index entries Windows 7 32bit Removing duplicate index entries Office 2003
Novice
Removing duplicate index entries
 
Join Date: Feb 2013
Posts: 8
Bengt is on a distinguished road
Default Removing duplicate index entries

I have a rather large document, into which I intend to enter index entries. Alas, someone has already started that project before me, but only made it halfway through. Now, when I do an AutoUpdate of the index entries, I get double entries from time to time, one from the person who did it first, and one from my own update. What is the easiest search and replace operation to get rid of all XE-field-codes?



Grateful for any help

Bengt
Reply With Quote
  #2  
Old 02-28-2013, 11:50 AM
Stefan Blom's Avatar
Stefan Blom Stefan Blom is offline Removing duplicate index entries Windows 7 64bit Removing duplicate index entries Office 2010 32bit
Moderator
 
Join Date: Aug 2011
Posts: 3,872
Stefan Blom is a name known to allStefan Blom is a name known to allStefan Blom is a name known to allStefan Blom is a name known to allStefan Blom is a name known to allStefan Blom is a name known to all
Default

Are you tracking changes, perhaps? In that case, note that many fields won't "behave" until you have accepted (or rejected) changes and turned off the tracking.
__________________
Stefan Blom
Microsoft Word MVP

Microsoft 365 apps for business
Windows 11 Professional
Reply With Quote
  #3  
Old 03-01-2013, 12:34 AM
Bengt Bengt is offline Removing duplicate index entries Windows 7 32bit Removing duplicate index entries Office 2003
Novice
Removing duplicate index entries
 
Join Date: Feb 2013
Posts: 8
Bengt is on a distinguished road
Default How to search?

Quote:
Originally Posted by Stefan Blom View Post
Are you tracking changes, perhaps? In that case, note that many fields won't "behave" until you have accepted (or rejected) changes and turned off the tracking.
Perhaps I need to clarify my question:
If you do a search and replace operation, I have only found the ^d character for the search, and that finds any field, not only XE-fields. Can you specify the search parameter more, i.e. can you search for, for example, ^dXE?

Bengt
Reply With Quote
  #4  
Old 03-01-2013, 12:59 AM
macropod's Avatar
macropod macropod is offline Removing duplicate index entries Windows 7 64bit Removing duplicate index entries Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 21,956
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

Hi Bengt,

Try the following macro:
Code:
Sub DeleteAllIndexEntryFields()
Application.ScreenUpdating = False
With ActiveDocument.Range
  With .Find
    .ClearFormatting
    .Replacement.ClearFormatting
    .Text = "^d"
    .Replacement.Text = ""
    .Format = False
    .Forward = True
    .Wrap = wdFindStop
    .MatchCase = False
    .MatchWholeWord = False
    .MatchWildcards = False
    .MatchSoundsLike = False
    .MatchAllWordForms = False
    .Execute
  End With
  Do While .Find.Found
    If .Fields(1).Type = wdFieldIndexEntry Then .Delete
    .Collapse wdCollapseEnd
    .Find.Execute
  Loop
End With
Application.ScreenUpdating = True
End Sub
For installation & usage instructions, see: http://www.gmayor.com/installing_macro.htm
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
  #5  
Old 03-01-2013, 01:55 AM
Bengt Bengt is offline Removing duplicate index entries Windows 7 32bit Removing duplicate index entries Office 2003
Novice
Removing duplicate index entries
 
Join Date: Feb 2013
Posts: 8
Bengt is on a distinguished road
Default

Great, thanks. I'll give it a try.

Bengt
Reply With Quote
  #6  
Old 03-01-2013, 02:01 AM
Stefan Blom's Avatar
Stefan Blom Stefan Blom is offline Removing duplicate index entries Windows 7 64bit Removing duplicate index entries Office 2010 32bit
Moderator
 
Join Date: Aug 2011
Posts: 3,872
Stefan Blom is a name known to allStefan Blom is a name known to allStefan Blom is a name known to allStefan Blom is a name known to allStefan Blom is a name known to allStefan Blom is a name known to all
Default

Manually replacing ^d XE with nothing should work just as fine. You'd have to display hidden text first (so that the XE fields are visible).
__________________
Stefan Blom
Microsoft Word MVP

Microsoft 365 apps for business
Windows 11 Professional
Reply With Quote
Reply

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Index entries repeating SQLUSA Word 0 12-27-2012 08:19 AM
How Can I Flag Duplicate Date Entries? tatihulot Excel 5 11-16-2012 12:19 AM
colour of entries ntambomvu Outlook 0 03-15-2012 11:56 PM
Removing duplicate index entries Removing secondary entries atilla Excel 4 07-17-2011 07:29 AM
Index entries in endnotes perhj Word 0 06-19-2011 09:28 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 03:18 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft