Office 2007 SP2 prevents Wscript.Shell Run method from hiding wind

A

Amitava

Following code opens Excel in hidden mode in Office 2007 SP1, but not in SP2
(using any .Net 2.0/3.0/3.5). Probably an SP2 bug?

*************************************************
Set myshell = WScript.CreateObject("WScript.Shell")
myfile = "C:\mytest.xls"
myshell.Run """C:\Program Files\Microsoft Office\Office12\EXCEL.EXE """ &
myfile, 0, True
*************************************************
Workarounds? Please let me know.
Thanks,
Amitava
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top