我正在编写一个非常简单的 HTML 文件,其中包含一些表格。
我试图获得一个单元格值,它基本上是一个链接。通过单击链接,我想在 Excel 应用程序中的特定工作表和行中打开文件。
Notes:
- 视窗环境
- HTML由标准浏览器打开
- 该文件存在于本地(简单路径:C:\test.xlsx)
- Excel应用程序路径未知
- 我希望 HTML 文件尽可能简单。好的设计并不是首要任务。只需要让它发生。
- (低优先级)如果 Excel 实例(对于特定文件)已打开,我想更改活动工作表并突出显示打开实例中的行
<HTML>
<HEAD>
<Title>Excel Linking Example</Title>
</HEAD>
<body>
<p>
<a href="http://localhost/excel/asheet.xls#Sheet2!D4">
This link will open the Excel file to the second page with the focus on
cell D4</a>.
<a href="http://localhost/excel/asheet.xls#TableName">
This link will set the focus on a named area of the spreadsheet
</a>.
</p>
<form>
<input type=button
value="Via Jscript"
onclick='location.href = "asheet.xls#TableName"'>
</form>
</body>
</html>
source: http://support.microsoft.com/kb/197922 http://support.microsoft.com/kb/197922
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)