Imports Microsoft.Office.Interop.Word
Private w_app As Application
Private w_doc As Document
w_doc = w_app.Documents.Open(StrConv(filePath, VbStrConv.SimplifiedChinese))
其中filePath為“C:/Temp/測驗檔案Test File.docx”,執行到open時word彈出視窗“抱歉找不到您的檔案。是否可能被移動、重命名或洗掉?(C:\//Temp/測驗檔案Test20%File.docx)”。
uj5u.com熱心網友回復:
為啥要strconv?轉載請註明出處,本文鏈接:https://www.uj5u.com/gongcheng/15150.html
標籤:VBA
下一篇:vb中SpSharedRecoContext提示自動化錯誤實時錯誤‘-2147467259(80004005)’
