Copy Excel file on Sharepoint via VBA

Sinem

Board Regular
Joined
Nov 8, 2015
Messages
63
Hi,

at the moment my code copies an excel file from an windows explorer path (Source_path) and puts the file in a new path (Destination_path), opens it and does some formattings and saves it.

This procedure should be done on Sharepoint. I don't want to download the file. The source file is already on Sharepoint.

Have you any idead how to do this?
 

Excel Facts

How to total the visible cells?
From the first blank cell below a filtered data set, press Alt+=. Instead of SUM, you will get SUBTOTAL(9,)
You will have to download the file if you want to use VBA. VBA isnt available to excel online.
 
Upvote 0
Hi thank you for your response. Have you any advice how to download files and upload them again on sharepoint via Excel VBA
 
Upvote 0
I wouldnt know how to do that. Its probably possible so ask google. Im sure somebody has done it before.
 
Upvote 0
The trick is that you have to replace the path with Sharepoint's path in Windows Explorer. Then the copy method works.
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,184
Members
453,020
Latest member
Mohamed Magdi Tawfiq Emam

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