js操作excel

<script language="javascript">
function AutomateExcel() {
var oXL = new ActiveXObject("Excel.Application"); 
var oWB = oXL.Workbooks.Add(); 
var oSheet = oWB.ActiveSheet; 
oSheet.Cells(1,1).value = "test";
oXL.Visible = true; 
oXL.UserControl = true; 
}

</script>

你可能感兴趣的:(JavaScript,Excel)