Creating InternetExplorer object in VBA – controlling window state
Posted on 2004-08-16
I’m using the following piece of code in Excel VBA to open and control and internet explorer session.
Dim IESession As SHDocVw.InternetExplorer
Set IESession = New SHDocVw.InternetExplorer
.Visible = True
This works well.
Is it possible to control how the window is opened – Maximized, Minimized or Restored?
One of the properties of the Internet Explorer object is the HWND. (Not sure if my terminology is quite accurate!) Could the HWND be used somehow to control the window state?