-3
A
回答
0
示例代码你可以publish an Excel file to Sharepoint(又名Chèvre-poing),但它看起来相当困难,因为认证机制被篡改(如山羊)。
所以,你应该做的是映射本地共享与SharePoint(\\my_chevre_poing\goaty\
,然后有一点点VBA它从你最喜欢的宏地点:
Sub Copy_Folder()
'This example copy all files and subfolders from FromPath to ToPath.
'Note: If ToPath already exist it will overwrite existing files in this folder
'if ToPath not exist it will be made for you.
Dim FSO As Object
Dim FromPath As String
Dim ToPath As String
FromPath = "C:\local\trucs\" '<< your own source there
ToPath = "\\my_chevre_poing\goaty_trucs\" '<< your share there
If Right(FromPath, 1) = "\" Then
FromPath = Left(FromPath, Len(FromPath) - 1)
End If
If Right(ToPath, 1) = "\" Then
ToPath = Left(ToPath, Len(ToPath) - 1)
End If
Set FSO = CreateObject("scripting.filesystemobject")
If FSO.FolderExists(FromPath) = False Then
MsgBox FromPath & " doesn't exist"
Exit Sub
End If
FSO.CopyFolder Source:=FromPath, Destination:=ToPath
MsgBox "You can find the files and subfolders from " & FromPath & " in " & ToPath
End Sub
您也可以找到huge resource there
相关问题
- 1. excel vba宏将多个文件从文件夹复制到文件夹
- 2. 使用vba复制粘贴微软word文件到另一个文件夹
- 3. 使用vba将文件从一个文件夹复制到另一个文件夹
- 4. 如何使用vba将列从一个excel文件复制到另一个
- 5. Excel的VBA复制到使用细胞
- 6. Excel VBA:将excel列从一个文件复制到其他同名文件(不同文件夹中)
- 7. 复制文件夹到另一个
- 8. 使用VBA将行复制到Excel中的另一个表格
- 9. 将文件夹从一个文件夹复制到一个新文件夹
- 10. ROBOCOPY - 文件夹的内容复制到一个文件夹
- 11. PowerShell的最新文件夹复制到另一个文件夹
- 12. 使用vbscript将文件从一个文件夹复制到另一个文件
- 13. 使用VBA将多个文件复制到单个文件
- 14. VBA - 从多个Excel文件复制并粘贴到单个Excel文件
- 15. 从一个excel复制到其他使用VBA
- 16. 复制文件夹到另一个文件夹
- 17. 复制.dll文件到同一文件夹中,使用CMake的
- 18. 将png文件从一个文件夹复制到另一个
- 19. 将x文件从一个文件夹复制到另一个
- 20. 如何将文件从一个文件夹复制到另一个文件夹
- 21. 从多个文件夹中的文件复制到一个
- 22. 使用vba从多个子文件夹复制文件
- 23. 打开多个子文件夹,复制均优于它的文件到另一个文件夹 - VBA
- 24. EXCEL VBA - 将文件从一个目录复制到另一个目录
- 25. 仅复制文件夹VBA的第一个文件
- 26. 使用VBA Excel批准/拒绝文件到SharePoint Share
- 27. 如何使用VBA将数据从一个excel文件复制到另一个文件夹中的另一个文件?
- 28. Excel VBA中 - .TXT(制表delimted)文件到下一个可用行
- 29. 将文件从一个文件夹复制到其他文件
- 30. 将文件夹从一组文件复制到另一个文件夹