VBA to rename sharepoint folders and files

Sidemon

New Member
Joined
Jun 3, 2016
Messages
1
Hi all,

We are in the process of migrating our file system onto SharePoint 2013 (from shared network drives). We have a number of Excel based tools (Excel 2010) which I am trying to adapt, ready for the migration. One function I am struggling with is the renaming of files and folders. Currently we simply use;

Name OldName As NewName (after first specifying the old and new names as strings).

When I try to run the VBA in SharePoint, I get an 'Invalid procedure call or argument' error and the debugger takes me to the Name line.

Is it possible to use VBA to rename files and folders in SharePoint? If so, any help with how would be very gratefully accepted. I'm sorry if this is a very basic question, I am completely new to SharePoint.

Thanks,
Simon.
 

Excel Facts

Return population for a City
If you have a list of cities in A2:A100, use Data, Geography. Then =A2.Population and copy down.
Hello, I would really like to know if you were able to solve this problem, because I need to perform a similar action, I need to rename a series of folders that are located in SharePoint using an Excel VBA macro but the NAME action does not work. If you managed to solve it, I would greatly appreciate it if you could share an example code with me to do this action.
 
Upvote 0

Forum statistics

Threads
1,221,905
Messages
6,162,772
Members
451,786
Latest member
CALEB23

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