Results 1 to 5 of 5
  1. #1
    New Lounger
    Join Date
    Nov 2005
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Cross-reference between 2 documents (1)

    Is there some code that is available to have cross-references from one document to another?

  2. #2
    Super Moderator
    Join Date
    Jan 2001
    Location
    Melbourne, Victoria, Australia
    Posts
    3,852
    Thanks
    4
    Thanked 259 Times in 239 Posts

    Re: Cross-reference between 2 documents (1)

    You don't need code to do this (although it can help if you need to produce lots of cross-references). The basic steps involve adding a bookmark in the target file where you want the crossref to point at and then going to the file that is to contain the crossref and adding an IncludeText field to that bookmark.

    I haven't seen a code solution to set this up and it is far from bulletproof so it may not be all that worthwhile for a developer to create the code and userforms necessary to perform the task.
    Andrew Lockton, Chrysalis Design, Melbourne Australia

  3. #3
    3 Star Lounger
    Join Date
    Apr 2004
    Location
    Boston, Massachusetts, USA
    Posts
    389
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Cross-reference between 2 documents (1)

    As someone who has implemented this in code, I'll say it ain't easy, but it can be done. If you're looking at making a ton of xrefs, it can be worth it. I for one hate that infernal, tiny cross reference dialog.

    Hack 44 ("Hack More Flexible Cross Referencing") in my book (see signature below) covers how to implement your own cross reference dialog. We use a more complex version of that code (which includes a pulldown to choose external docs) in our authoring template.

  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-reference between 2 documents (1)

    And for those who can't get to a bookstore and want it right now, Word Hacks is available online from the Safari service, with a 14 day free trial (credit card required). See O'Reilly Network Safari Bookshelf - Word Hacks.

    Note: for anyone interested in Safari, it is available through several different portals and your password only seems to work at the original one. They all look pretty similar, but you might look at Addison-Wesley (this one seems a bit slow to me) and Informit to see if those appeal to you more than the above.

  5. #5
    3 Star Lounger
    Join Date
    Apr 2004
    Location
    Boston, Massachusetts, USA
    Posts
    389
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Cross-reference between 2 documents (1)

    Thanks, Jefferson!

Posting Permissions

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