VB怎样打开指定网页

2024-11-17 17:32:09
推荐回答(2个)
回答1:

Set ie = CreateObject("INTERNETEXPLORER.APPLICATION")
ie.Visible = True
ie.Navigate "你的网页地址"

回答2:

Option Explicit
Private 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
Private Const SW_SHOWNORMAL = 1
Private Sub Form_Load()
ShellExecute 0, "OPEN", "http://www.baidu.com", "", "", SW_SHOWNORMAL
End Sub