![](/img/trans.png)
[英]VBA for moving file from one Sharepoint folder to another in Excel
[英]VBA to open a particular excel file from an sharepoint folder
我想打開一個Excel文件,該文件存儲在我的SharePoint中的“文件夾”下
//文檔//設計// Excel //items.xlsx
我通過Internet搜索,並想到了以下代碼。 代碼的問題是它正在打開本地驅動器中的“文件打開”對話框。
任何人都可以向我建議可以使用的代碼,並可以從SharePoint打開Excel文件
這是我嘗試過的,上面的示例在論壇中嘗試過
Sub Share()
Dim S As Workbook
Dim WB As Variant
With Application.FileDialog(msoFileDialogOpen)
.InitialFileName = "https://Sharepoint.de/Content/0030/default.aspx" & "/RootFolder=%2Fcontent%2F00008200%2FTeam%20Documents%2F02%20%2D%20Design%2F0001%20Design%2FExcel&FolderCTID=0x01200083BC38D90EC5674491B520CC48282737&View={28035ED9-59EF-42BE-BA4B-A36193C54539}&InitialTabId=Ribbon%2EDocument&VisibilityContext=WSSTabPersistence"
.AllowMultiSelect = False
.show
For Each WB In .SelectedItems
Set S = Workbooks.Open(WB)
Next
End With
If S Is Nothing Then Exit Sub
End Sub
預先謝謝你
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.