Group: microsoft.public.word.vba.general
From: =?Utf-8?B?Z2JwZw==?=
Date: Saturday, March 15, 2008 12:36 AM
Subject: Re: Creating a hyplink to a url site on a user form created in wor

I tried the below:
Private Sub Label114_Click()

' a [Company] I work for site safety
ThisDocument.FollowHyperlink _
Address:"=http://www.microsoft.com"
End Sub

the error is
compile error
syntx error
syntax error



"Tony Jollans" wrote:

> "doesn't work" still does not give me much to go on. It works for me.
>
> What happens? Nothing? An error message? And what version of Word are you
> using?
>
> --
> Enjoy,
> Tony
>
> "gbpg" wrote in message
> news:611880B9-FBC0-4847-B803-2E01237D4228@microsoft.com...
> > Sorry Tony:
> > I have a form and a label on it that I can click on in Excel I tried to
> > put
> > this type of syntax in:
> >
> > Private Sub Label14_Click()
> > ' a [Company] I work for site safety
> > ThisWorkbook.FollowHyperlink
> > Address:="http://notrealname.fictionnet.com/content.asp?id=1111"
> > End Sub
> >
> > In excel this works. In Word using a using form and label it does not. I
> > tried the ThisDocument but it doesn't work.
> >
> > "Tony Jollans" wrote:
> >
> >> Not very much to go on! You might be looking for ActiveDocument.
> >>
> >> --
> >> Enjoy,
> >> Tony
> >>
> >> "gbpg" wrote in message
> >> news:28DAB799-0569-4701-AAFA-A50D8A41D489@microsoft.com...
> >> >I have created hyperlinks on various tools like labels and buttons on an
> >> > excel userform but cannot get this to work in word. The code starts
> >> > with
> >> > ActiveSheet. in excel what is the word equivalent or are there other
> >> > methods?
> >>
> >>
>
>