willow1985
Well-known Member
- Joined
- Jul 24, 2019
- Messages
- 938
- Office Version
- 365
- Platform
- Windows
I am not familiar with SharePoint but my business has decided to move all records to SharePoint, so I need to be able to modify current Excel Macros to create folders in SharePoint instead of a network drive.
Does anyone know how I can modify the below code to achieve this? My below modifications do not seem to work.
Thank you to anyone who can help.
Does anyone know how I can modify the below code to achieve this? My below modifications do not seem to work.
Thank you to anyone who can help.
VBA Code:
sFolder = Worksheets("List").Range("C2").Value & Range("C1").Value
If Dir(sFolder, vbDirectory) = "" Then
MkDir sFolder
End If
Sheets("Quality Log").Select
Calculate
ActiveSheet.Hyperlinks.Add anchor:=Selection, Address:=sFolder
Book1 | ||||
---|---|---|---|---|
B | C | |||
1 | Last Quality Record Created: | Q4170 | ||
2 | Last Quality Record Directory: | https://group.sharepoint.com/sites/StorageTestGroup1/Shared%20Documents/Marcos%20Sheet/Quality%20Records/ | ||
3 | Directory of All Quality Records: | https://group.sharepoint.com/sites/StorageTestGroup1/Shared%20Documents/Marcos%20Sheet/Quality%20Records/ | ||
4 | ||||
5 | ||||
6 | Directory of OPS Forms | https://group.sharepoint.com/sites/StorageTestGroup1/Shared%20Documents/Marcos%20Sheet/ | ||
7 | https://group.sharepoint.com/sites/StorageTestGroup1/Shared%20Documents/Marcos%20Sheet/OPS%20097%20Rev%206%20Non%20Conformance%20Report.xlsx | |||
8 | Customer Concern OPS Form: | OPS 041 Customer Concerns Rev 7 | ||
9 | NCR OPS Form: | OPS%20097%20Rev%206%20Non%20Conformance%20Report | ||
10 | CAPA OPS Forms | OPS 050 Corrective Action Request Rev 8 | ||
List |