' Specify the browser application and the URL to open
commandString = "iexplore.exe " & varUrlToAccess
' The below code will open a new IE window with the specified URL
set wShell = CreateObject("WScript.Shell")
varReturnCode = wShell.Run(commandString,3,true)
(Opinions and information contained in this post are wholly my own and do not reflect the opinions of my employer.)
Now the customer is asking that the new window maximize on open.
I've tried ie.FullScreen = True, but then the navigation and favorites bars are taken away from the user, most things i see online involve using a shell script call which I canoot get ALM to support, any other ideas?
Unfortunately that didn't work, however playing around with the order attributes are set in does, only oddity is that the new window has a black border for some reason...
Function Open_New_Browser_Window (sURL)
'Create Browser Window Instance
' MsgBox "Opening Browser Window = " & sURL
Set ie = CreateObject("InternetExplorer.Application")
'Open a new window from the existing instance of IE
.FullScreen = True
.AddressBar = True
.MenuBar = True
.Visible = True