Results 1 to 2 of 2

Thread: Website loading

  1. #1
    Guest

    Talking

    How can I open a webpage using the default browser?

  2. #2
    Your Ad Here! Edneeis's Avatar
    Join Date
    Feb 2000
    Location
    Moreno Valley, CA (SoCal)
    Posts
    7,339
    Code:
    'declares for shell by association
    Public Declare Function ShellExecute Lib "shell32.dll" Alias "ShellExecuteA" (ByVal hwnd As Long, ByVal lpOperation As String, ByVal lpFile As String, ByVal lpParameters As String, ByVal lpDirectory As String, ByVal nShowCmd As Long) As Long
    Public Const SW_SHOW As Integer = 5
    Public Const SW_NORMAL = 1
    that takes care of the declares now the function

    Code:
    ShellExecute 0&, "open", YourURLHere,vbNullString, vbNullString, SW_NORMAL
    ShellExecute will open, print, etc.. files by whatever is set in their file association info (.doc will open in Word, .xls in Excel....)

Posting Permissions

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



Click Here to Expand Forum to Full Width