該webapp已在office2007上完成,我需要將其轉換爲Office2010中的工作。 我能夠轉換代碼的頭部生成器部分,但我有文檔本身的問題。代碼複製「data」文檔中的數據並將其粘貼到生成的文檔中。自動化word 2010來生成文檔
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 debuger說錯誤:需要appsel1對象。當我查看它的數據使用iexplorer調試器時,它的數據是「空」而不是「{...}」
任何人都可以告訴我我做錯了什麼
如果你需要更多的代碼告訴我。
它應該選擇它在word office 2007工作的文件中的所有文本 – Barakonda