The code below has been working fine for years, but will not work with an excel 2007, xlsx, document. If I'm on a workstation with office 2003, I get a box saying cannot open document. If I'm on a workstation with office 2007, excel opens but the document does not load and the window with my script hangs up. Is there any reason for this? Does the code require modification? I've googled it, but unable to find an answer.
var appExcel = new ActiveXObject("Excel.Application");
appExcel.Visible = true;