Changing file explorer directories to Sharepoint directories

jon1315

Board Regular
Joined
Jun 16, 2020
Messages
60
Office Version
  1. 365
Platform
  1. Windows
Good afternoon
I have a number of Excel files which use VBA to create 'dynamic' filepaths, which then proceed to do whatever is needed of them

For example:
Var1 = [directory root]
Var2 = [month]
var3 = [Filename]
FullFilePath = Va1 & "\" & Var2 & "\" & Var3
...

and then the rest of the script.

I have to move my files onto Sharepoint, so have made some test areas to temporarily house the files.
The Sharepoint filepaths I have been using are essentially the URL on the area I've saved the files, but some of them are huge and quite complex:

https://[company].sharepoint.com/sites/AutomationTest/Sharepoint%20VBA%20Test%20Area/Forms/AllItems.aspx?newTargetListUrl=%2Fsites%2FAutomationTest%2FSharepoint%20VBA%20Test%20Area&viewpath=%2Fsites%2FAutomationTest%2FSharepoint%20VBA%20Test%20Area%2FForms%2FAllItems%2Easpx&id=%2Fsites%2FAutomationTest%2FSharepoint%20VBA%20Test%20Area%2FBanking%2FTransfers%2FSource%20Files%2FClient%20Funds%20Transfer%20Generator%2F2024%2F03%2E%20Mar&viewid=1e68819c%2Da059%2D412e%2Db488%2Db10361df658e

Is there an easier way to manipulate these directories? That's quite a simple one, but can see them potentially doubling in size once the required subfolders are created

Thank you in advance

Jon
 

Excel Facts

What does custom number format of ;;; mean?
Three semi-colons will hide the value in the cell. Although most people use white font instead.

Forum statistics

Threads
1,224,819
Messages
6,181,153
Members
453,021
Latest member
Justyna P

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top