写了一段代码,可以最大化了。
Private Declare Function apiShowWindow Lib "user32" Alias "ShowWindow" (ByVal hwnd As Long, ByVal nCmdShow As Long) As Long
Sub shh()
Dim X As Long
Const SW_SHOWMAXIMIZED = 3
Dim IE
Set IE = CreateObject("InternetExplorer.Application")
X = apiShowWindow(IE.hwnd, SW_SHOWMAXIMIZED)
Err.Clear
With IE
.navigate "About:Blank"
.Visible = 1
.MenuBar = 0
.Toolbar = 0
.StatusBar = 0
End With
Set IE = Nothing
End Sub