Hi folks
I've been trying to find out of there's a way to set an Internet Explorer window to match the maximum height of the current desktop display (without first finding out the current display settings).
I want the width to be constant but I'd like the height to initially be the maximum available but allow the user to change it afterwards if they like.
So currently I have
I'm aware of [tt]objIE.height=xxx[/tt] but is there something like [tt]objIE.height=maximum[/tt]? I'm guessing, obviously...
JJ
[small][purple]Variables won't. Constants aren't[/purple]
There is no apostrophe in the plural of PC (or PST, or CPU, or HDD, or FDD, and so on)[/small]
I've been trying to find out of there's a way to set an Internet Explorer window to match the maximum height of the current desktop display (without first finding out the current display settings).
I want the width to be constant but I'd like the height to initially be the maximum available but allow the user to change it afterwards if they like.
So currently I have
Code:
Sub OpenHTMLReport(strReport)
objIE.visible = true
objIE.ToolBar = 0
objIE.statusbar=false
objIE.Navigate "about:blank"
Do Until objIE.ReadyState = 4
WScript.Sleep 100
Loop
objIE.Navigate "file:///" & strReportFile
Do While objIE.Busy = True
WScript.Sleep 500
Loop
do while objIE.Document is nothing
wscript.sleep 50
loop
do while objIE.Document.body is nothing
wscript.sleep 50
loop
End Sub
JJ
[small][purple]Variables won't. Constants aren't[/purple]
There is no apostrophe in the plural of PC (or PST, or CPU, or HDD, or FDD, and so on)[/small]