Results 1 to 3 of 3
  1. #1
    2 Star Lounger
    Join Date
    Feb 2001
    Location
    Wellington, New Zealand
    Posts
    143
    Thanks
    0
    Thanked 1 Time in 1 Post

    Hyperlinks (Word XP - SP2)

    Can someone please explain why some hyperlinks in Word get added with a { HYPERLINK "part_apart_bpart_cfile.doc" } format, while others get added with a { HYPERLINK "part_a/part_b/part_c/file.doc" } format. Why are double back-slashes and single forward-slashes both used in the same document, and what determines this?

    The difference isn't visible if you right-click on a hyperlink and choose "Edit Hyperlink", but it is visible if you show field codes. The difference is also evident if you get a hyperlink Address using VBA - the double backslashes are rendered as single back-slashes, while the single forward-slashes don't change.

    I'm using Windows 2000 SP3, and the Word documents don't have a "Hyperlink base".

    Thanks in advance.

  2. #2
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: Hyperlinks (Word XP - SP2)

    Hyperlinks to files with a path relative to that of the document use single forward slashes. Hyperlinks with a non-relative path use double backslashes. If you insert a hyperlink into a document that has never been saved yet, the path is always absolute, since there is nothing a relative path could refer to.

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

    Re: Hyperlinks (Word XP - SP2)

    Hi William:
    I'm not sure I can answer completely, but:
    1. web addresses use a forward slash, such as
    http://www.wopr.com/cgi-bin/w3t/newreply.p...r=310009&page=0 &view=collapsed&what=showflat&sb=5&o=0&fpart=1&vc= 1
    2. Paths to folders & subfolders on the computer or network use the backslash. In some fields, such as the INCLUDETEXT field, you need to use double backslashes.

    Quite frankly, one of these days I was going to make a list of where the forward slash is used & where the backslash is used, as I keep forgetting, myself. <img src=/S/smile.gif border=0 alt=smile width=15 height=15>
    Hope this helps,

Posting Permissions

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