inserting bookmarks and pointers to them

G

Guest

have a document with an appendix of headings and pics(168 total) in this format
Slide 1
pic
Slide 2
pic

i want add bookmarks at the heading and put a "return to top" link so you
can click from the top of the document to that bookmark then click back up to
where you were. also need the place at the top to point to the appropriate
bookmark...ie...text says something like "click here to see Slide 2" and i
want that to link to "Slide 2"

this is code for finding and deleting bookmarks as a starter...i suppose i
can capture references to "Slide 2" in a string in VB and replace that with a
hyperlink to a bookmark with the same name...i just dont know how to go about
coding it...thanks in advance...
 
G

Guest

i just found out that if i put a #_ in front of any text i can
make a hyperlink point to it... if the text was #_Something then in the
address where the hyperlink points to i type #_Something the hyperlink will
work. it kinda looks ugly though to have that visible text...
 
G

Guest

here is the code..it didnt paste right before...the guy wanted to find and
delete bookmarks and replace text with "B" or something...

Sub ScratchMarcro()
Dim oBM As Bookmark
For Each oBM In ActiveDocument.Bookmarks
oBM.Select
oBM.Delete
Selection.Text = "B"
Next
End Sub
 

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