I use the following function to open Internet Explorer via VBA from Excel.
This works fine but I want to ensure that the IE window is maximized. I cannot seem to find a command to do this.
Any ideas please?
Paul
Code:
Function GetWeb(URL As String) As String
Dim IEApp As Object
Set IEApp = CreateObject("InternetExplorer.Application")
IEApp.Visible = True
IEApp.Navigate URL
End Function
Sub Test
GetWeb "[URL unfurl="true"]www.MyPage.com"[/URL]
end sub
This works fine but I want to ensure that the IE window is maximized. I cannot seem to find a command to do this.
Any ideas please?
Paul