![](/img/trans.png)
[英]How to open file on my Onedrive with VBA if I don't have internet connection?
[英]How to open a file on my Sharepoint Site with VBA if I dont have internet connection?
我有一個宏可以在 Sharepoint 站點上打開一個文件,使用該文件生成一個新文件以保存到同一個 Sharepoint 站點中。 如果我當前已連接到 Internet,則宏運行得非常好。 當我與互聯網斷開連接時,宏無法打開文件,即使我引用了本地驅動器的路徑。 例如
Set wdApp = New Word.Application
'make word Visible'
wdApp.Visible = True
wdApp.Activate
'open File'
wdApp.Documents.Open (D:\mySharepointSite\file.dotx")
Sharepoint 上的所有內容都存儲在“雲”中,它(大致)是“互聯網”的一個奇特名稱。 如果您未連接到 Internet,則無法連接到 sharepoint。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.