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デバッガーを使用してそのデータを表示すると、そのデータは「{...}」ではなく「空」になり
ます。コードをもっと必要とする場合、
誰かが私が間違っていることを教えてもらえますか?