Hi folks,
According to a friend, this macro works fine in Word 2003 but causes a crash
in Word 2007. The name boat-03 is the name of the current active document.

Sub FollowLink()
Selection.Hyperlinks(1).Follow
Documents("boat-03.doc").Close
End Sub

I personally don't have Word 2007 to test it myself. Can anyone shed any
light on this?

Re: What's changed in vba in Word 2007? by Shauna

Shauna
Mon Jun 25 09:25:34 CDT 2007

See response to your more-or-less identical post sent 2 hours after this
one.

Shauna Kelly. Microsoft MVP.
http://www.shaunakelly.com/word


"padshall" <padshall@discussions.microsoft.com> wrote in message
news:DE1C2B72-AA22-443C-81B3-95A3589D231F@microsoft.com...
> Hi folks,
> According to a friend, this macro works fine in Word 2003 but causes a
> crash
> in Word 2007. The name boat-03 is the name of the current active
> document.
>
> Sub FollowLink()
> Selection.Hyperlinks(1).Follow
> Documents("boat-03.doc").Close
> End Sub
>
> I personally don't have Word 2007 to test it myself. Can anyone shed any
> light on this?