Excel VBA Trouble Accessing Sharepoint

mjbeam

Well-known Member
Joined
Apr 6, 2002
Messages
756
I have an Excel workbook macro that saves some of it's sheets to a sharepoint site as html. We are in the process of migrating to a new cloud based sharepoint site. The code works fine to save sheets to the old sharepoint site. However, on the new site I get a permission error when trying to save the sheets. I have access. I can map file explorer to the sharepoint site and read/write files to/from there. I have also tried using the filesystem object in VBA to access files on the sharepoint but if fails with the same error. However, I can create a batch file that copies files to the sharepoint and execute it from VBA with the Shell command successfully. Anyone have any idea how I can get access to this new sharepoint site from within VBA without having to shell out to the command line?
 

Excel Facts

Fastest way to copy a worksheet?
Hold down the Ctrl key while dragging tab for Sheet1 to the right. Excel will make a copy of the worksheet.

Forum statistics

Threads
1,215,043
Messages
6,122,822
Members
449,096
Latest member
Erald

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