当前位置:编程学习 > C#/ASP.NET >>

vbs脚本 怎么调用word公式编辑器

小弟,准备用vbs脚本 操作word输入特定字符,需要用到word的公式编辑器。在宏里看到的代码在vbs里不能用,说对象不存在。 脚本 vbs wsf --------------------编程问答-------------------- 可以的啊,如我向word里插入二次公式,运行下面这个代码成功插入了

Sub 宏1()
'
' 宏1 宏
'
'
    Application.Templates( _
        "C:\Users\zhangsan\AppData\Roaming\Microsoft\Document Building Blocks\2052\14\Built-In Building Blocks.dotx" _
        ).BuildingBlockEntries("二次公式").Insert Where:=Selection.Range, RichText:= _
        True
End Sub

--------------------编程问答--------------------
补充:.NET技术 ,  VB.NET
CopyRight © 2012 站长网 编程知识问答 www.zzzyk.com All Rights Reserved
部份技术文章来自网络,