Results 1 to 3 of 3
  1. #1
    2 Star Lounger
    Join Date
    Mar 2005
    Location
    Kent, England
    Posts
    138
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Open URL via VBA Word (Office 2003)

    I have a userform and would like to place a command button that opens a webpage. Any help would be greatly appreciated.

    Cheers
    Jack

  2. #2
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: Open URL via VBA Word (Office 2003)

    Try this (with the appropriate name and URL substiruted):

    Private Sub CommandButton1_Click()
    ActiveDocument.FollowHyperlink "http://www.wopr.com"
    End Sub

  3. #3
    2 Star Lounger
    Join Date
    Mar 2005
    Location
    Kent, England
    Posts
    138
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Open URL via VBA Word (Office 2003)

    Thank you Hans.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •