Hyperlink / button to bookmark

D

Dave T

Hello All,

I have a manual where I would like to put a button or hyperlink at the
top of each page (i.e. that is in the same position on each page) that
when clicked will take you to a bookmark, e.g. an Index or Table of
Contents.

If I was to use a macro I am not sure if this will be disabled, so I
would prefer to avoid this, but if this is the way to go any
suggestions would be appreciated.

I am using Word 2000 but will be soon upgrading to Word 2003.

Regards, Dave T
 
C

Cindy M -WordMVP-

Hi Dave,

One problem you have is putting the button on every page (and making
sure it stays where you put it). My preference would be a toolbar with a
button, but that would require a macro.

A FRAME (from the Forms) toolbar or a Textbox (Drawing toolbar) can be
positioned relative to the page. You could put a hyperlink in such a
thing, then copy/paste to each page. No macro required, in this case.

Word also provides a GoToButton field (Insert/Fields) that will jump to
any bookmark when double-clicked.
I have a manual where I would like to put a button or hyperlink at the
top of each page (i.e. that is in the same position on each page) that
when clicked will take you to a bookmark, e.g. an Index or Table of
Contents.

If I was to use a macro I am not sure if this will be disabled, so I
would prefer to avoid this, but if this is the way to go any
suggestions would be appreciated.

I am using Word 2000 but will be soon upgrading to Word 2003.

Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Jun 17 2005)
http://www.word.mvps.org

This reply is posted in the Newsgroup; please post any follow question
or reply in the newsgroup and not by e-mail :)
 
D

Dave T

Hello All,

Thank you Cindy for the reply.

I tried your various suggestions and yes using a frame or a text box
works but copying it, pasting it on a new page and keeping it in the
same location on each page is very difficult and time consuming (when
pasting on a new page it is in a different place each time; or maybe I
am not using the correct location settings). Which leads me to ask you
about your other suggestions....
How would I go about '...a toolbar with a button, using a macro'? What
is a suitable macro that would do this and would the toolbar button
appear/be available (how would I do this as well) for other users of
the document?
I also tried (without any success) to use the GoToButton. With Word
2000 I went Insert > Field > Options > Contents (my TOC) > Add to
Field. But after all this there was nothing visible to double click
on. I probably won't use this method but I am just keen to know how to
do it.

I experimented with a Command Button from the Control Toolbox menu, but
lacked the appropriate macro. Somehow I suspect this would also jump
around the page when copied and pasted on a new page.
Therefore.... any more information on your toolbar with a button and
macro would be much appreciated.

Regards,
Dave T
 
D

Dave T

Hello All again,

Another option for me might be to insert a hyperlink contained in the
header to a bookmark (Contents). I have tried to do this before as
Word will let me insert a hyperlink into a header but when I click out
of Header > Footer editing, the hyperlink is not active.
Can this be done and is it an easier option than trying to 'fix' the
link and this option for me would mean the link would be in the same
place on every page.

Regards,
Dave T
 
C

Cindy M -WordMVP-

Hi Dave,
Another option for me might be to insert a hyperlink contained in the
header to a bookmark (Contents). I have tried to do this before as
Word will let me insert a hyperlink into a header but when I click out
of Header > Footer editing, the hyperlink is not active.
Can this be done and is it an easier option than trying to 'fix' the
link and this option for me would mean the link would be in the same
place on every page.
No, this won't work. Either the header/footer is active, or the document
is.

Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Jun 17 2005)
http://www.word.mvps.org

This reply is posted in the Newsgroup; please post any follow question
or reply in the newsgroup and not by e-mail :)
 
C

Cindy M -WordMVP-

Hi Dave,
I tried your various suggestions and yes using a frame or a text box
works but copying it, pasting it on a new page and keeping it in the
same location on each page is very difficult and time consuming
Yes... Right-click the frame and choose the "Format" command. You can
position to "Move with text" or not. Choose to NOT do so. Now you can
set the position relative to the page, margin or column, both
horizontally and vertically. Now, when you copy/paste to another page,
it should position in the same place.

The reason it "jumps around" is because: 1. Move with text is
activated. 2. And this positions relative to the object ANCHOR (if
you're not seeing a little anchor in the left margin when dragging a
frame around, activate the option in Tools/Options/View).

If anyone will be editing the text on these pages, it's a good idea to
make sure the anchor is next to a paragraph near the middle of the
page. Because a graphical object will ALWAYS be on the same page as
the anchoring paragraph. So click in this paragraph before pasting.

If you want to make sure the anchor can't move to a different
paragraph (Word always feels more "comfortable" when the anchor is as
close to the frame as possible), activate the "Lock anchor" checkbox
in the same Format dialog box mentioned above.

Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Jun 17 2005)
http://www.word.mvps.org

This reply is posted in the Newsgroup; please post any follow question
or reply in the newsgroup and not by e-mail :)
 
C

Cindy M -WordMVP-

Hi Dave,

(In a separate posting, since the other got so long...)
How would I go about '...a toolbar with a button, using a macro'? What
is a suitable macro that would do this and would the toolbar button
appear/be available (how would I do this as well) for other users of
the document?
the macro is a fairly simple one. Here, "test" is the name of the
bookmark.

Sub HyperlinkToBookmark()
ActiveDocument.FollowHyperlink SubAddress:="test"
End Sub

In Tools/Customize/Toolbars you can create a new toolbar. At the bottom
of this dialog box there's a list where you can specify where the toolbar
should be saved. You want to save it in this document; it will travel
with the document. Give it a name. Ok.

Then Alt+F11 to open the Visual Basic (macro) Editor. Select the document
in the Project Window. Then Insert/Module. You can copy/paste the above
three lines into the module. Change the bookmark name from "test" to
whatever you need.

Now back to Tools/Customize/Commands. From the list on the left, choose
"Macros". Find the one you just created and drag it to your new toolbar.
Right-click it to change the caption, choose a button image, whatever you
like.
I also tried (without any success) to use the GoToButton. With Word
2000 I went Insert > Field > Options > Contents (my TOC) > Add to
Field. But after all this there was nothing visible to double click
on. I probably won't use this method but I am just keen to know how to
do it.
You also need to add some "display text". If you press Alt+F9 you can see
the field code. It should look like this (My TOC is the display text):

{GOTOBUTTON test My TOC}

Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Jun 17 2005)
http://www.word.mvps.org

This reply is posted in the Newsgroup; please post any follow question or
reply in the newsgroup and not by e-mail :)
 

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