Results 1 to 10 of 10
  1. #1
    3 Star Lounger
    Join Date
    Mar 2003
    Location
    Elkins Park, Pennsylvania, USA
    Posts
    325
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Captions and Hidden Bookmarks (Word 2002)

    Someone please help!!
    I need to know how Word generates the hidden bookmarks associated with captions. (Or how to make it do it when I want it to.) I know that Word's cross-referencing process just an implementation of "REF" fields and bookmarked "SEQ" fields. I also know that there are no bookmarks (hidden or otherwise) associated with a caption UNTIL it's referenced using Word's own Cross-Referencing feature. But I've been tasked with creating a simpler dialog box for the user which would list only Table and Figure sequences and which will insert the reference in a "custom" format. I'm very good with VBA, but I'm stumped at the part where I'd need to generate and retrieve the bookmark associated with a caption.
    Any ideas? Advice? Dance routines?
    <font face="Comic Sans MS">That's what you do in a herd; you look out for each other!</font face=comic> - Mike

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

    Re: Captions and Hidden Bookmarks (Word 2002)

    When I had to do something similar I ended up defining my own caption type and inserting my own hidden bookmarks when the user inserted my captions.

    StuartR

  3. #3
    Gold Lounger
    Join Date
    Dec 2000
    Location
    Hollywood (sorta), California, USA
    Posts
    2,759
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Captions and Hidden Bookmarks (Word 2002)

    Stuart,
    How does one create a "hidden" bookmark? What makes it "invisible"?
    Kevin <IMG SRC=http://www.wopr.com/w3tuserpics/Kevin_sig.gif alt="Keep the change, ya filthy animal...">
    <img src=/w3timages/blackline.gif width=33% height=2><img src=/w3timages/redline.gif width=33% height=2><img src=/w3timages/blackline.gif width=33% height=2>

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

    Re: Captions and Hidden Bookmarks (Word 2002)

    If the first character of the name is an underscore then it is hidden. You can see hidden bookmarks in the Insert Cross Reference dialog box by checking "Hidden Bookmarks" on the Insert Bookmark dialog box.

    StuartR

  5. #5
    Uranium Lounger
    Join Date
    Dec 2000
    Location
    Los Angeles Area, California, USA
    Posts
    7,453
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Captions and Hidden Bookmarks (Word 2002)

    Hi Stuart:
    Does this work without VBA & will it work with Word 2000? When I tried to create a bookmark with a name starting with an underscore, the Add button in the Bookmark dialog box was greyed out.

  6. #6
    Gold Lounger
    Join Date
    Dec 2000
    Location
    Hollywood (sorta), California, USA
    Posts
    2,759
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Captions and Hidden Bookmarks (Word 2002)

    Very interesting. I've never heard of the underscore bit to make hidden bookmarks.. Where
    did you learn that bit of VBA lore? I see, as Phil has, that you cannot add hidden
    bookmarks via the dialog.

    Anyway, thanks. That may be useful someday.
    Kevin <IMG SRC=http://www.wopr.com/w3tuserpics/Kevin_sig.gif alt="Keep the change, ya filthy animal...">
    <img src=/w3timages/blackline.gif width=33% height=2><img src=/w3timages/redline.gif width=33% height=2><img src=/w3timages/blackline.gif width=33% height=2>

  7. #7
    3 Star Lounger
    Join Date
    Mar 2003
    Location
    Elkins Park, Pennsylvania, USA
    Posts
    325
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Captions and Hidden Bookmarks (Word 2002)

    EXCELLENT tip!
    It may not let you create a bookmark that way in real time, but I wrote a piece of code to test the "underscore principle" and it worked like a charm. (I'll be creating the captions and cross-references via VBA code anyway.)
    Still, I'd like to know how Word's hidden bookmarks are created; I know it's something to do with time, because if you quickly create two in a row, the numbers in the name differ only by a little. Also, I hope I won't have any problem later on down the line doing things one normally might do with captions (e.g., List of Tables, etc.) <img src=/S/cheers.gif border=0 alt=cheers width=30 height=16>
    <font face="Comic Sans MS">That's what you do in a herd; you look out for each other!</font face=comic> - Mike

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

    Re: Captions and Hidden Bookmarks (Word 2002)

    Funny that, I'd never noticed that you couldn't do this via the dialog box.
    Some people use dialog boxes and others tend to write our word documents from the VBE <img src=/S/smile.gif border=0 alt=smile width=15 height=15>

    StuartR

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

    Re: Captions and Hidden Bookmarks (Word 2002)

    > Still, I'd like to know how Word's hidden bookmarks are created
    So would I, please post the information if you ever find it. I had all sorts of problems even when I could find them, there are other magic things about Words caption bookmarks which sometimes cause hundreds of them to all seem to refer to the same paragraph and other confusions.

    I have added additional hidden bookmarks to real captions and this doesn't seem to interfere with any of the built in functionality.

    StuartR

  10. #10
    Super Moderator
    Join Date
    May 2002
    Location
    Canberra, Australian Capital Territory, Australia
    Posts
    5,054
    Thanks
    2
    Thanked 417 Times in 346 Posts

    Re: Captions and Hidden Bookmarks (Word 2002)

    <P ID="edit" class=small>(Edited by macropod on 24-Apr-03 20:26. )</P>Hi Stuart,

    You can create a hidden bookmark with a SET field or an ASK field. For example:
    {SET _Hidden "You can't see me"}

    Not sure how useful this would be for Mesaka's captioning, but maybe it's something to start with ...

    Cheers
    Cheers,

    Paul Edstein
    [MS MVP - Word]

Posting Permissions

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