Hi all
I searched the forum and found the code below and created a page to test it. The code opens Excel fine but does not open the file. Can anyone point out where the error is. I am using my home computer and the files are both located on the C Drive.
<script language=”JavaScript”>
function startExcel(strFile)
{
var myApp = new ActiveXObject(“Excel.Application”);
if (myApp != null)
{
myApp.Visible = true;
myApp.Workbooks.Open(strFile);
}
}
</script>
<p>You can now start Excel with a hyperlink:</p>
<a href=”javascript:startExcel(‘C:Documents and SettingsMeMy DocumentsCraigs StuffDaily_work_record.xls’)”>Test.xls</a>.
</body>
</html>
Thanks for reading this
Craig