M
Matz
Steps to recreate the problem/bug:
1. Open a document such as the one:
http://www.3gpp.org/ftp/tsg_ran/WG3_Iu/Draft_Specs/TSG-RAN12/25402-360.doc -
all the specification documents from www.3gpp.org that I've tried seem to
give the same problem.
2. Start recording a macro, with Tools|Macro|Record New Macro|Ok.
3. Insert a hyperlink to a heading, with Insert|Hyperlink|Bookmark...
Click, for example, "2 References" and Ok|Ok.
4. Click the stop button to stop macro recording.
5. Check that the hyperlink you just created works by clicking it - you
should jump to chapter 2 References.
6. Close the document, but don't save it.
7. Reopen the document.
8. Run the macro you created earlier, with Tools|Macro then select it and
then Run.
9. A hyperlink should be inserted. Click on the hyperlink to see that it
works. For me at least, it doesn't, the cursor jumps to the start of the
file instead.
10. Now create a new hyperlink to "2 References", positioning it somewhere
else in the document.
11. Check that that hyperlink works. It should.
12. Now go to the hyperlink created by the macro and click on it. Now it
should work, thanks to the manually created hyperlink having been made.
The problem - clearly the macro command created,
Sub Macro1()
'
' Macro1 Macro
' Macro recorded 2005-04-21 by qpkorr
'
ChangeFileOpenDirectory _
"C:\Documents and Settings\qpkorr\Local Settings\Temporary Internet
Files\OLK7A7\"
ActiveDocument.Hyperlinks.Add Anchor:=Selection.Range, Address:="", _
SubAddress:="_2_References", ScreenTip:="", TextToDisplay:="2
References"
End Sub
has not fully recorded everything that the Insert|Hyperlink command actually
did. This means I can't make a macro to create hyperlinks, which I wish to
do.
1. Open a document such as the one:
http://www.3gpp.org/ftp/tsg_ran/WG3_Iu/Draft_Specs/TSG-RAN12/25402-360.doc -
all the specification documents from www.3gpp.org that I've tried seem to
give the same problem.
2. Start recording a macro, with Tools|Macro|Record New Macro|Ok.
3. Insert a hyperlink to a heading, with Insert|Hyperlink|Bookmark...
Click, for example, "2 References" and Ok|Ok.
4. Click the stop button to stop macro recording.
5. Check that the hyperlink you just created works by clicking it - you
should jump to chapter 2 References.
6. Close the document, but don't save it.
7. Reopen the document.
8. Run the macro you created earlier, with Tools|Macro then select it and
then Run.
9. A hyperlink should be inserted. Click on the hyperlink to see that it
works. For me at least, it doesn't, the cursor jumps to the start of the
file instead.
10. Now create a new hyperlink to "2 References", positioning it somewhere
else in the document.
11. Check that that hyperlink works. It should.
12. Now go to the hyperlink created by the macro and click on it. Now it
should work, thanks to the manually created hyperlink having been made.
The problem - clearly the macro command created,
Sub Macro1()
'
' Macro1 Macro
' Macro recorded 2005-04-21 by qpkorr
'
ChangeFileOpenDirectory _
"C:\Documents and Settings\qpkorr\Local Settings\Temporary Internet
Files\OLK7A7\"
ActiveDocument.Hyperlinks.Add Anchor:=Selection.Range, Address:="", _
SubAddress:="_2_References", ScreenTip:="", TextToDisplay:="2
References"
End Sub
has not fully recorded everything that the Insert|Hyperlink command actually
did. This means I can't make a macro to create hyperlinks, which I wish to
do.