Results 1 to 9 of 9
  1. #1
    Star Lounger
    Join Date
    Nov 2001
    Location
    Sydney, Australia, Australia
    Posts
    75
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Cross-references and expanding bookmarks (2000)

    I use captions and cross-references a lot to refer to things like table numbers. However, if I go to beginning of my table heading and type any text, this gets included in the bookmark and hence appears in the cross-reference as well! For example, if my secretary is tidying up my document and decides that the table should start at the top of a page, she will press crtl-enter at the start of the table heading. This then introduces page breaks at every place in the document where the table is referenced.
    Any solution to this? Is this fixed in word 2002?

  2. #2
    Gold Lounger
    Join Date
    Dec 2000
    Location
    New Hampshire, USA
    Posts
    3,386
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Cross-references and expanding bookmarks (2000)

    There's nothing to fix.
    Bookmarks have always worked that way.

    One must learn to take care when modifying text adjacent to bookmarked text, which is the reason that Tools | Options | View | Show | Bookmarks should ALWAYS be checked.

  3. #3
    Star Lounger
    Join Date
    Nov 2001
    Location
    Sydney, Australia, Australia
    Posts
    75
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Cross-references and expanding bookmarks (2000)

    Unfortunately the bookmarks inserted by insert/caption don't appear when you turn on show bookmarks.

  4. #4
    Super Moderator jscher2000's Avatar
    Join Date
    Feb 2001
    Location
    Silicon Valley, USA
    Posts
    23,112
    Thanks
    5
    Thanked 93 Times in 89 Posts

    Re: Cross-references and expanding bookmarks (2000)

    The problem of page breaks being included in the following paragraph seems to crop up in other contexts. I believe the recommended workaround is to go into Format|Paragraph..., Line and Page Breaks tab, and check Page break before. This will add the little black square mark to the left of the paragraph so that those mystified by the formatting in the future will have a little hint to check the Format|Paragraph... dialog.

  5. #5
    Gold Lounger
    Join Date
    Dec 2000
    Location
    New Hampshire, USA
    Posts
    3,386
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Cross-references and expanding bookmarks (2000)

    Yet another flaw in the MSFT implementation of captions.

    I never use Insert Caption, it's better to retain total control and insert your own bookmarks.

  6. #6
    Silver Lounger
    Join Date
    Jan 2001
    Location
    West Long Branch, New Jersey, USA
    Posts
    1,921
    Thanks
    6
    Thanked 9 Times in 7 Posts

    Re: Cross-references and expanding bookmarks (2000)

    I tried to view the bookmark delimiters but, as you said, they don't show even if you click on the proper View option.

    You said in your original post that your secretary does a couple of things to tidy the document and gave as an EXAMPLE the hard page breaks to position the table on the next page. Perhaps Jefferson's approach is best for this.

    However, if there are other things she adds, there may be a workaround. On an empty line on the line ABOVE the caption, put whatever info you want. If you then delete the paragraph mark on the line above the caption, it appears that the material on that line is NOT part of the caption even tho they are now on the same line. So when you insert the x-ref, it will not pick up the material you added. At least it worked for me.

    Fred

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

    Re: Cross-references and expanding bookmarks (2000)

    Another work-around might be to put your own visible bookmarks on top of every invisible bookmark:
    <pre> Dim myBookmark As Bookmark
    Dim myRange As Range
    For Each myBookmark In ActiveDocument.Bookmarks
    If Left(myBookmark.Name, 4) = "_Ref" Then
    If ActiveDocument.Bookmarks.Exists("F" & myBookmark.Name) Then
    ' visible bookmark already exists
    Else
    Set myRange = myBookmark.Range
    ActiveDocument.Bookmarks.Add Name:="F" & myBookmark.Name, Range:=myRange
    End If
    End If
    Next myBookmark</pre>

    These should behave the same way as the invisible bookmarks "beneath" them, so you'll see if one gets messed up.

    Bookmarks seem to be invisible (even if "Tools > Options > View > Bookmarks" is checked) if their name starts with an underscore.
    You could replace the invisible Ref bookmarks entirely with your own visibe bookmarks, but would have to change the cross reference fields, too.

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

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

    Re: Cross-references and expanding bookmarks (2000)

    The bookmarks also become visible after a round-trip to a format that doesn't know about hidden bookmarks (such as Word2).
    You might loose too much other things, too, though <img src=/S/sad.gif border=0 alt=sad width=15 height=15>

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

  9. #9
    Star Lounger
    Join Date
    Nov 2001
    Location
    Sydney, Australia, Australia
    Posts
    75
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Cross-references and expanding bookmarks (2000)

    This looks useful. However, I needed to add the following to the top of the macro to get it to run.
    With ActiveDocument.Bookmarks
    .ShowHidden = True
    End With

Posting Permissions

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