Re: Error! Bookmark not found.
- From: dougmcr8 <dougmcr8@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Sat, 9 Feb 2008 05:42:01 -0800
Jay - Thanks for the feedback. Please let me clarify to ensure the right next
steps. When I Right Click/Toggle Field the "Error Bookmark not defined."
error message the revealed field appears as { "Word" }. But when I turn on
the Show/Hide tool, all the fields appear as they properly should for an
index entry, i.e. {XE "Word"}. The "XE" is in there. Can I do a Find/Replace
to eliminate the current Index entries using a wildcard entry in the Find
block and nothing in the Replace block? I seem to remember something like
that but cannot remember what the Find entry should look like to eliminate
every Indexed Entry. Thanks
"Jay Freedman" wrote:
On Fri, 8 Feb 2008 18:36:01 -0800, dougmcr8 <dougmcr8@xxxxxxxxxxxxxxxxxxxxxxxxx>.
wrote:
"Jay Freedman" wrote:
On Thu, 7 Feb 2008 18:27:00 -0800, dougmcr8 <dougmcr8@xxxxxxxxxxxxxxxxxxxxxxxxx>Jay - Thanks much. I toggled a sample and they all look like an Automark
wrote:
I'm using Vista and MS Office 2007 on a previously built Word 97 doc [about
1m characters]. For several months all was fine. All of the sudden, when
trying to print one day, once the print cycle started, the "Error! Bookmark
not found." appeared in every place where there should be an automark entry
for an Index. This error message also prints. I don't think I ever added a
"Bookmark" anywhere in my 365 pages. I tried re-indexing with my source file
and a new Index appears normally. But this does not eliminate this "Error!
Bookmark not found." problem. Any ideas? Thanks very much.
Index marking is done with fields -- they should be XE fields, which are
automatically marked as Hidden text.
The "default" field type is a REF field; if the first word in the field code
isn't recognized as one of the special field keywords, then Word assumes that
the code is the name of a bookmark that it should refer to. The error message
you see is what a REF field displays when there is no bookmark with the "name"
in the field code.
What has apparently happened to your document is that all the XE fields have
been damaged in some way so they aren't recognized as XE or any of the other
known keywords, so they're assumed to be REF fields referring to nonexistent
bookmarks. I don't know how that may have happened.
Right-click any of the error messages and choose Toggle Field Codes. What do you
see within the braces? Look at a number of them. Depending on how uniform these
broken codes are, it may be possible to remove them with a properly constructed
Replace command.
entry should look [when Show/Hide is not on], i.e. { "Word" }. So if you can
remind me how to replace every one of those several thousand entries during a
single Find/Replace operation then I'll try to insert a new Index and see
what happens. Appreciate the assist here.
A field code that looks like { "Word" } is _not_ what a marked index entry
should look like -- it should have an XE keyword at the start.
Be that as it may, I was trying to see whether the codes of these damaged fields
contained a common portion that the Replace could search for, but it looks like
the answer is no. That means the solution needs to be programmed as a macro with
more intelligence than a simple Replace.
Follow the instructions in http://www.gmayor.com/installing_macro.htm to paste
the following macro into the VBA editor, in your Normal template.
Sub DeleteBadRefs()
Dim idx As Long
Dim oFld As Field
For idx = ActiveDocument.Fields.Count To 1 Step -1
Set oFld = ActiveDocument.Fields(idx)
With oFld
If .Type = wdFieldRef And _
InStr(.Result, "Error!") Then
.Delete
End If
End With
Next
End Sub
This macro examines each field in the document. If the field is a Ref field that
displays an error message, it deletes that field.
--
Regards,
Jay Freedman
Microsoft Word MVP FAQ: http://word.mvps.org
Email cannot be acknowledged; please post all follow-ups to the newsgroup so all may benefit.
- Follow-Ups:
- Re: Error! Bookmark not found.
- From: Jay Freedman
- Re: Error! Bookmark not found.
- References:
- Re: Error! Bookmark not found.
- From: Jay Freedman
- Re: Error! Bookmark not found.
- From: dougmcr8
- Re: Error! Bookmark not found.
- From: Jay Freedman
- Re: Error! Bookmark not found.
- Prev by Date: Re: Problem with Word 2007 SP1
- Next by Date: Re: Error! Bookmark not found.
- Previous by thread: Re: Error! Bookmark not found.
- Next by thread: Re: Error! Bookmark not found.
- Index(es):
Relevant Pages
|