关于javascript 操作EXCEL的问题,急!!!! 建议找些VBA编程的资料看看,如果安装了office,机器上会有一个VBA编程参考,OWCVBA(XX).CHM(文件名没有括号,一般XX=10或11) 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 <html xmlns:o="urn:schemas-microsoft-com:office:office"xmlns:x="urn:schemas-microsoft-com:office:excel"xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=GB2312"><script>function out(){ try{ var elTable = document.getElementById("out"); var oRangeRef = document.body.createTextRange(); oRangeRef.moveToElementText( elTable ); oRangeRef.execCommand( "Copy" ); var oXL = new ActiveXObject("Excel.Application") var oWB = oXL.Workbooks.Add ; var oSheet = oWB.ActiveSheet ; oSheet.Paste(); oSheet.Cells.NumberFormatLocal = "@"; oXL.Visible = true; oSheet = null; oWB = null; appExcel = null; }catch(e){alert(e)} }</script></head><body><table id ='out'> <tr> <td x:str bgcolor="#FF0000">00001</td> <td x:str>0002</td> </tr> <tr> <td height=18 align=right style='height:13.5pt' x:str>00001</td> <td align=right x:str>000002</td> </tr> <tr> <td x:str>0003</td> <td x:str>00003</td> </tr></table><INPUT type="button" value="Button" id=button1 name=button1 onclick="out()"></body></html> 求类似于淘宝搜索选项卡的弹出窗口插件。 电脑是跟8月31日有仇吗?为什么不能输入8月31日? 怎样用JS读取<iframe></iframe>里面的值呢? ext中如何得到FORM的元素名称和元素值 JAVASCRIPT存储COOKIES出错? 以下的javascript内的javascript没有执行,有办法可行吗? 功能强大的网站主题自由切换jquery插件 字符比较求助 jquery.easyui中tabs选项卡问题 关于QQ非会员克隆好友的可能性(有部分进展) 简单问题:各位帮看一下 iframe取值问题
xmlns:x="urn:schemas-microsoft-com:office:excel"
xmlns="http://www.w3.org/TR/REC-html40"><head>
<meta http-equiv=Content-Type content="text/html; charset=GB2312">
<script>
function out(){ try{
var elTable = document.getElementById("out");
var oRangeRef = document.body.createTextRange();
oRangeRef.moveToElementText( elTable );
oRangeRef.execCommand( "Copy" ); var oXL = new ActiveXObject("Excel.Application")
var oWB = oXL.Workbooks.Add ;
var oSheet = oWB.ActiveSheet ;
oSheet.Paste();
oSheet.Cells.NumberFormatLocal = "@";
oXL.Visible = true;
oSheet = null;
oWB = null;
appExcel = null; }catch(e){alert(e)}
}</script>
</head><body><table id ='out'>
<tr>
<td x:str bgcolor="#FF0000">00001</td>
<td x:str>0002</td>
</tr>
<tr>
<td height=18 align=right style='height:13.5pt' x:str>00001</td>
<td align=right x:str>000002</td>
</tr>
<tr>
<td x:str>0003</td>
<td x:str>00003</td>
</tr>
</table>
<INPUT type="button" value="Button" id=button1 name=button1 onclick="out()">
</body>
</html>