Results 1 to 3 of 3
  1. #1
    2 Star Lounger
    Join Date
    Apr 2002
    Location
    Arkansas, USA
    Posts
    163
    Thanks
    0
    Thanked 0 Times in 0 Posts

    VBA code for hyperlink (Access 2k)

    I have a transparent command button that I would like to open a web page when the OnClick event is activated. How can I code the page to open in the default browser window using VBA code?

    Thanks for any assistance.

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

    Re: VBA code for hyperlink (Access 2k)

    You can use Application.FollowHyperlink, for example

    Private Sub cmdLink_Click()
    Application.FollowHyperlink "http://www.wopr.com"
    End Sub

    Type followhyperlink into a code window (or the immediate window) and press F1 to get more information on this function.

  3. #3
    2 Star Lounger
    Join Date
    Apr 2002
    Location
    Arkansas, USA
    Posts
    163
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: VBA code for hyperlink (Access 2k)

    Thanks Hans, you are the best.

Posting Permissions

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