Results 1 to 2 of 2
2003-02-20, 17:12 #1
- Join Date
- Aug 2001
- Thanked 0 Times in 0 Posts
Hyperlinks - unc or actual path (word 97 sr2)
I've written a macro that will insert a hyperlink into the activedocument, so that the user can then click on it to open windows explorer at the current documents folder. When I retrieve the activedocument path it is displayed as the drive letter e.g. g:temp. However, when I add the hyperlink to the document it appears as the unc path e.g. europetemplatestemp.
I would like to display the field result with the drive letter, rather than unc, but can't find a way using VBA to do this.
This is the current code:
Dim curpath As String, hlink As Hyperlink
curpath = ActiveDocument.Path
ActiveDocument.Hyperlinks.Add Address:=curpath, _
Does anyone have the answer? I've tried looking through other threads, but couldn't see anything...
2003-02-20, 23:42 #2
- Join Date
- Jan 2001
- Melbourne, Victoria, Australia
- Thanked 264 Times in 242 Posts
Re: Hyperlinks - unc or actual path (word 97 sr2)
I thought you might be able to rewrite it once created but the Address property is Read Only.
Is it possible to use a FollowHyperlink macro instead of creating a hyperlink?Andrew Lockton, Chrysalis Design, Melbourne Australia