[
返回首页
] [
查看留言
]
回复留言
管理员帐号:
密码:
:
内容:
:
感谢您试用WebOffice,可以参考如下代码: form1.WebOffice.ActiveDocument.Application.Sheets(1).Select; form1.WebOffice.ActiveDocument.Application.Range("C5").Select; form1.WebOffice.ActiveDocument.Application.ActiveCell.FormulaR1C1 = "126"; form1.WebOffice.ActiveDocument.Application.Range("C6").Select; form1.WebOffice.ActiveDocument.Application.ActiveCell.FormulaR1C1 = "446"; form1.WebOffice.ActiveDocument.Application.Range("C7").Select; form1.WebOffice.ActiveDocument.Application.ActiveCell.FormulaR1C1 = "556"; form1.WebOffice.ActiveDocument.Application.Range("C5:C8").Select; form1.WebOffice.ActiveDocument.Application.Range("C8").Activate; form1.WebOffice.ActiveDocument.Application.ActiveCell.FormulaR1C1 = "=SUM(R[-3]C:R[-1]C)"; form1.WebOffice.ActiveDocument.Application.Range("D8").Select; alert(form1.WebOffice.ActiveDocument.Application.Range("C8").Text);