0
在Word 2010中,可以通過Insert tab
上的choosing Object-> Text from File..
導入另一個文件中的文本。這適用於從Google文檔導入文本。我記錄了VBA代碼來執行此操作。但是當我運行代碼時出現錯誤:Word中錄製的VBA代碼失敗
Runtime error 4198 command failed.
我該如何解決這個問題?
Sub Macro2()
'
' Macro2 Macro
'
Selection.InsertFile FileName:= _
"https://docs.google.com/document/u/0/export?format=docx&id=blahblah" _
, Range:="", ConfirmConversions:=False, Link:=False, Attachment:=False
End Sub