Programatically Creating a Hyperlink

U

umpty

I am trying to create a hyperlink and send it to a table
in Access, but when I create the hyperlink using the
following syntax, I am unsuccessful:

Add(Anchor, Address, SubAddress, ScreenTip, TextToDisplay,
Target)

I am confused as to what the "Anchor" argument is looking
for.

Has anyone used this before, if so, could you enlighten me.

Thanks
 
C

Chad DeMeyer

Anchor refers to the range in the document to which the hyperlink will be
attached, i.e., the text the user will be able to click to follow the
hyperlink. So for instance, if the hyperlink was being added to the range
currently selected:

ActiveDocument.Hyperlinks.Add Anchor:=Selection.Range, ...

Regards,
Chad
 

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