This is what I have but it still opens in a maximized view. It is almost as if the statement is terminated after the file name is opened. This is an external js that I am calling from an asp page.
Sub openDocument(file)
Set oShell = CreateObject("Wscript.Shell")
oShell.Run Chr(34) & file & Chr(34), 2, true
End Sub
Sub openDocument(file)
Set oShell = CreateObject("Wscript.Shell")
oShell.Run Chr(34) & file & Chr(34), 2, true
End Sub