Hyperlink in the same document

M

Matz

I am trying to write a Word Macro to convert selected text in
3G specifications into hyperlinks to other places within the
same document. However, I believe there is a bug in Word.
As a simple example, if I record a macro to add a hyperlink,
using the standard record macro functionality, to produce the
following macro code:

Sub Macro1()
'
' Macro1 Macro
' Macro recorded 2004-10-11 by user1
'
ActiveDocument.Hyperlinks.Add Anchor:=Selection.Range,
Address:="", _
SubAddress:="_9.2.1.4_Cause", ScreenTip:="", TextToDisplay:= _
"9.2.1.4 Cause"
End Sub

then the hyperlink I have created works. But if I exit Word
without saving the document, then reopen the document and
re-run the macro I had previously created, the new hyperlink
it creates doesn't work. This seems like a bug to me, any idee?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top