webapp 已经在 office2007 上完成,我需要对其进行转换,以便它可以在 office2010 中工作。我能够转换代码的标题生成器部分,但我对文档本身的正文有问题。该代码从“数据”文档中复制数据并将其粘贴到生成的文档中。
appword.activewindow.activepane.view.seekview = 0
'set appsel1 = appword.activewindow.selection
set appsel1 = appword.window(filepath).selection -that is the original one
appdoc1.bookmarks("b1").select
appword.selection.insertafter("some text")
appsel1.endkey(6) -the code stops here
appword.selection.insertafter("some other text")
iexplorer 调试器说 ERROR:appsel1 object required。当我使用 iexplorer 调试器查看它的数据时,它的数据是“空的”而不是“{...}” ,
如果你需要更多代码告诉我,
谁能告诉我我做错了什么。