VB怎样打开指定网页

2024年11月17日 17:32
有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