Re: Programatically Creating a Hyperlink

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance

From: Chad DeMeyer (cjdemeye)
Date: 07/26/04


Date: Mon, 26 Jul 2004 12:41:56 -0700

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

"umpty" <anonymous@discussions.microsoft.com> wrote in message
news:46d301c4733d$646fe2f0$a501280a@phx.gbl...
> 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



Relevant Pages

  • RE: Need portability of docs with hyperlinks
    ... know that the target address of the hyperlink is context sensitive. ... company network or to the Internet. ... Right-click on the hyperlink, choose "Edit Hyperlink," and edit the target ... Note that server addresses use backslashes and URLs ...
    (microsoft.public.word.docmanagement)
  • Re: Which part of shape selected
    ... Try setting the TextToDisplay last. ... You can't assign TextToDisplay to a hyperlink ... My code is a variation of the PP11 Help for the TextToDisplay property. ... how are you working back from the selection to the hyperlink you're ...
    (microsoft.public.powerpoint)
  • Re: Need portability of docs with hyperlinks
    ... know that the target address of the hyperlink is context sensitive. ... company network or to the Internet. ... the server name, and must include the complete path to the file. ...
    (microsoft.public.word.docmanagement)
  • Re: Which part of shape selected
    ... The only problem I can't solve is when I want to put a hyperlink at the end ... Try setting the TextToDisplay last. ... even the snippet from Help blows up. ... how are you working back from the selection to the hyperlink you're ...
    (microsoft.public.powerpoint)
  • Re: Which part of shape selected
    ... The only problem I can't solve is when I want to put a hyperlink at the end ... Try setting the TextToDisplay last. ... how are you working back from the selection to the hyperlink you're ... Steve Rindsberg, PPT MVP ...
    (microsoft.public.powerpoint)