一系列 Microsoft 試算表軟體,具有可用來對資料進行分析、製圖及通訊的工具
You may try data>From File>From SharePoint Folder.
Could you share us your purpose to using VBA instead of Power query?
i had removed files from local pc to sharepoint.
i had been use function "getFolder" to get files and it was success last year. but i didn't work this year.
i also looking for sharepoint api for vba and it didn't exist.
how could i use vba to get the file which was in sharepoint?
一系列 Microsoft 試算表軟體,具有可用來對資料進行分析、製圖及通訊的工具
鎖定的問題。 此問題已從 Microsoft 支援服務社群移轉。 您可以對其是否有幫助進行投票,但無法對問題新增註解或回覆,或進行追蹤。
1.because i just need a cell's data which was existed in sharepoint, i think the method that you said wasn't suited to me.
2.i just found a method that excel could get sharepoint directly via vba. there are too many files and i didn't have too much time to deal.
Sync to local folder and using UNC path to get data from files.
Reference:
Get the content of a sharepoint folder with Excel VBA - Stack Overflow
Share your VBA code and the line which get that error.