follow a hyperlink from word vba autoform

I have a word document with many autoforms and macro code. I would like to add some code that either automatically opens a specific web page or asks the user to press a button that then goes to to the web page. How do I do this? Also, is there a way to time out if the connection isn't made?
karimjohnsonAsked:
Who is Participating?
 
SiddharthRoutConnect With a Mentor Commented:
This is what I normally use :)

Private Sub Sample()
    On Error GoTo ErrIE
    
    Set browser = CreateObject("InternetExplorer.Application")
    browser.Visible = True
    
    browser.Navigate ("http://Google.Com")

    Exit Sub
ErrIE:
    MsgBox Err.Description, vbInformation, "Oops"
End Sub

Open in new window


Sid
0
 
Paul SauvéRetiredCommented:
hyperlink???
0
 
karimjohnsonAuthor Commented:
indeed. I just don't know the syntax.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.