Results 1 to 3 of 3
  1. #1
    2 Star Lounger
    Join Date
    Feb 2003
    Posts
    129
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Opening a webpage (97/sr2)

    What would be the coding to make a command button on a form open a certain webpage like www.yahoo.com. I tried to do this before and ran into trouble and now I have to create another button and am looking for an easier solution.

    Thanks.

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

    Re: Opening a webpage (97/sr2)

    You can set the Hyperlink Address property of the command button to http://www.yahoo.com. That way, you don't need any code.

  3. #3
    Silver Lounger
    Join Date
    Jun 2002
    Location
    Cheadle, Staffordshire
    Posts
    2,177
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Opening a webpage (97/sr2)

    On the buttons click event, you could use:
    Shell "C:Program FilesInternet ExplorerIEXPLORE.EXE http://www.Yahoo.com"

Posting Permissions

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